padRight method

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

Pads this number on the right with padding if it is shorter than width.

Implementation

String padRight(int width, [String padding = '0']) => toString().padRight(width, padding);