firstOrNull property

T? get firstOrNull

Implementation

T? get firstOrNull => isNullOrEmpty ? null : this!.first;