takeLast method

String takeLast(
  1. int count
)

Take the last count characters from this. Ignoring special unicode character handling. This operates on the "pure bytes" only.

Implementation

String takeLast(int count) => substring(max(length - count, 0), length);