firstOrNull property

T? get firstOrNull

Returns the first element, or null if the iterable is empty.

Implementation

T? get firstOrNull => value.firstOrNull;