digitsAfter method
Get the digits after a substring
in the number
Returns the digits after a substring
in the number
Implementation
num digitsAfter(num substring) {
var index = toString().indexOf(substring.toString());
if (index == -1) return 0;
var result = toString().substring(index + 1);
return int.parse(result);
}