indexOfLast method

int indexOfLast(
  1. num substring
)

Get the index of the last occurrence of substring in the number. Returns the index of the last occurrence of substring in the number.

Implementation

int indexOfLast(num substring) =>
    toString().lastIndexOf(substring.toString());