padRight method

String padRight(
  1. int width, [
  2. String padding = ' '
])

Pads this string on the right if it is shorter than width. Return a new string that appends padding after this string one time for each position the length is less than width.

Implementation

/// Return a new string that appends [padding] after this string
/// one time for each position the length is less than [width].
String padRight(int width, [String padding = ' ']) {
  return value.padRight(width, padding);
}