number method

int number()

Implementation

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