right static method

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

Returns the right most take characters from string.

If take is greater than the length of string then padding is applied according to pad. if string is null it is treated as an empty String and the above rules are applied.

Implementation

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