trimRightLength method

String trimRightLength(
  1. int length
)

The string trimmed from the right side by the given length.

Implementation

String trimRightLength(int length) => substring(0, this.length - length);