lastOrNull property

*<Null safety>*

T? lastOrNull

Implementation

T? get lastOrNull {
  if (isEmpty) return null;
  return last;
}