left static method

String left(
  1. String? string,
  2. int take, {
  3. Pad pad = Pad.none,
})

Returns left most take characters from string.

If take is longer than string then the result is padded according to pad if string is null it is treated as an empty String and the above rules are applied.

Implementation

static String left(String? string, int take, {Pad pad = Pad.none}) =>
    Part.left(string, take, pad: pad);