indexOfLast method
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());