padRight method Null safety
Pads this string on the right if it is shorter than
Returns a new string that appends
padding after this string
one time for each position the length is less than
width is already smaller than or equal to
no padding is added. A negative
width is treated as zero.
padding has length different from 1, the result will not
width. This may be useful for cases where the
padding is a longer string representing a single character, like
" " or
In that case, the user should make sure that
the correct measure of the strings length.
String padRight(int width, [String padding = ' ']);