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