truncateCenter method

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

Truncates the string from the center if it is longer than width.

Implementation

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