lastOrNull property

T? lastOrNull

Implementation

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