number method

int number()

Implementation

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