lastOrNull property

T? get lastOrNull

Implementation

T? get lastOrNull => isNullOrEmpty() ? null : this!.last;