FutureOrNullableExtension<T extends Object> extension
- on
-
- FutureOr<
T?>
- FutureOr<
Methods
-
orElseAsync(
T defaultValue) → FutureOr< T> -
Available on FutureOr<
Returns the value of this FutureOr (T?> , provided by the FutureOrNullableExtension extensionT
). If the value is null, it will return thedefaultValue
. -
orElseGeAsync(
FutureOr< T> defaultGetter()) → FutureOr<T> -
Available on FutureOr<
Returns the value of this Future (T?> , provided by the FutureOrNullableExtension extensionT
). If the value is null, it will return the value returned bydefaultGetter
.