dropLast method

String dropLast([
  1. int last = 1
])

Implementation

String dropLast([int last = 1]) => substring(0, max(length, length - last));