padLeft method
Pads the string on the left to the specified width.
Example:
'5'.padLeft(3, '0'); // '005'
Implementation
String padLeft(int width, [String padding = ' ']) {
assert(width >= 0, 'width must be non-negative');
return length >= width ? this : padding * (width - length) + this;
}