ansiPadRight method

String ansiPadRight(
  1. int length, {
  2. String pad = " ",
})

Pad string to the right, ignoring embedded ansi sequences.

Implementation

String ansiPadRight(int length, {String pad = " "}) {
  final it = StringBuffer(this);
  while (ansiStripped(it.toString()).length < length) {
    it.write(pad);
  }
  return it.toString();
}