removeLast method

String removeLast([
  1. int upto = 1
])

Remove last element of string

Implementation

String removeLast([int upto = 1]) =>
    minLen(2) ? substring(0, length - upto) : '';