FutureOrTools<T> extension

contains extensions methods for FutureOr

on

Properties

asFuture Future<T>
will return a future version of this
read-only
future Future<T>
If this is not a Future than a cast exception is going to be thrown for a safer alternative use asFuture
read-only
isFuture bool
returns true if this is of type Future<T>
read-only
isNotFuture bool
returns true if this is a value of type T
read-only
value → T
If this is not a value than a cast exception is going to be thrown
read-only