firstOrNull property

T? get firstOrNull

Returns first

Implementation

T? get firstOrNull => isEmpty ? null : first;