removeLast property

String get removeLast

Removes last element

Implementation

String get removeLast => length > 1 ? substring(0, length - 1) : '';