valueOrNull property

T? get valueOrNull

Returns the value if the state is AsyncData, otherwise null.

Implementation

T? get valueOrNull => data;