firstOrNull property

T? firstOrNull

Implementation

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