left method
Returns the first length characters from the String.
If length is longer than the String then the result is padded
according to pad.
'ab'.left(3, pad: Pad.left);
-> ' ab'
Implementation
String left(int length, {Pad pad = Pad.none}) =>
Part.left(this, length, pad: pad);