or<T> method

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

Implementation

T or<T>(Object? _v, T v) => _v == _none ? v : _v as T;