safeCastStrict<R, V> static method

Option<R> safeCastStrict<R, V>(
  1. V value
)

Implementation

static Option<R> safeCastStrict<R, V>(V value) {
  if (value is R) return Some(value);
  return const None();
}