number method

int number()

Implementation

int number() => replaceAll(RegExp("[^0-9]"), "").toInt();