asNonFutureOrNull method
T?
asNonFutureOrNull()
Returns the synchronous value, or null
if this is a Future.
Implementation
@pragma('vm:prefer-inline')
T? asNonFutureOrNull() => isNotFuture ? this as T : null;
Returns the synchronous value, or null
if this is a Future.
@pragma('vm:prefer-inline')
T? asNonFutureOrNull() => isNotFuture ? this as T : null;