asSyncOrNull property

T? get asSyncOrNull

Casts a value to a synchronous value or returns null if the value is a Future.

Implementation

T? get asSyncOrNull => this is T ? this as T : null;