truncateLeft method

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

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

Implementation

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