last method

String last([
  1. int n = 1
])

Returns the last character.

Implementation

String last([int n = 1]) => substring(length - n);