or<T> method

T or<T>(
  1. Object? v,
  2. T t
)

Implementation

T or<T>(Object? v, T t) => v == $none ? t : v as T;