FutureOrX<T extends Object> extension
- on
-
- FutureOr<
T>
- FutureOr<
Properties
-
asAsync
→ Future<
T> -
Available on FutureOr<
Casts a value to a Future wrap the value in a Future if it is synchronous.T> , provided by the FutureOrX extensionno setter - asSync → T
-
Available on FutureOr<
Casts a value to a synchronous value or throws a TypeError if the value is a Future.T> , provided by the FutureOrX extensionno setter - asSyncOrNull → T?
-
Available on FutureOr<
Casts a value to a synchronous value or returnsT> , provided by the FutureOrX extensionnull
if the value is a Future.no setter