right method

String right(
  1. int length, {
  2. Pad pad = Pad.none,
})

Returns the right 'n' characters from the String.

If length is greater than the length of this then padding is applied according to pad.

'ab'.right(3, pad: Pad.right)
-> 'ab '

Implementation

String right(int length, {Pad pad = Pad.none}) =>
    Part.right(this, length, pad: pad);