indexOfFirst method

int indexOfFirst(
  1. num substring
)

Get the index of the first occurrence of substring in the number.

Implementation

int indexOfFirst(num substring) => toString().indexOf(substring.toString());