firstOrNull property

T? get firstOrNull

Implementation

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