buildSpacedString function

String buildSpacedString(
  1. String left,
  2. String right,
  3. int length
)

Builds a string of Length length $left_______$right Used in the ticker

Implementation

String buildSpacedString(String left, String right, int length) {
  var output = StringBuffer(left);
  for (var i = 0; i < length - (left.length + right.length); i++) {
    output.write(" ");
  }
  output.write(right);
  return output.toString();
}