lastOrNull property

String? get lastOrNull

Implementation

String? get lastOrNull => isEmpty ? null : last;