truncateCenter method
Printer<T>
truncateCenter(
- int width, {
- String ellipsis = defaultEllipsis,
- 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);