removeLast property
String
get
removeLast
Removing last element form string a="qwer"; b = a.removerLast print(b) returns qwe
Implementation
String get removeLast {
if (isNotEmpty) {
return substring(0, length - 1);
}
return "";
}