firstOrNull property
T?
get
firstOrNull
Returns the first element, or null
if the set is empty.
Implementation
T? get firstOrNull => isEmpty ? null : first;
Returns the first element, or null
if the set is empty.
T? get firstOrNull => isEmpty ? null : first;