firstOrNull property

E? get firstOrNull

Implementation

E? get firstOrNull => isNotEmpty ? first : null;