firstOrNull property

T? get firstOrNull

Implementation

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