padRight method
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);
}