firstOrNull property

T? get firstOrNull

Implementation

T? get firstOrNull {
  if (isEmpty) return null;
  return first;
}