iif<U> method

U iif<U>({
  1. required U some(
    1. T
    ),
  2. required U none(),
})

Implementation

U iif<U>({required U Function(T) some, required U Function() none}) => _value != null ? some(_value!) : none();