lastOrNull method

T? lastOrNull()

Implementation

T? lastOrNull() => isEmpty ? null : last;