truncateRight method

Printer<T> truncateRight(
  1. int width, {
  2. String ellipsis = defaultEllipsis,
  3. TruncateMethod method = TruncateMethod.characters,
})

Truncates the string from the right side if it is longer than width.

Implementation

Printer<T> truncateRight(int width,
        {String ellipsis = defaultEllipsis,
        TruncateMethod method = TruncateMethod.characters}) =>
    TruncateRightPrinter<T>(this, width, ellipsis, method);