firstOrNull method

T? firstOrNull()

Implementation

T? firstOrNull() => isEmpty ? null : first;