dropLast method

String dropLast(
  1. int count
)

Remove the last count bytes from this String. Returns empty String if count >= length.

Implementation

String dropLast(int count) => substring(0, max(0, length - count));