removeLastChar method

  1. @useResult
String removeLastChar()

Returns a new string with the last character removed.

Implementation

@useResult
String removeLastChar() => (length < 1) ? '' : substringSafe(0, length - 1);