isNumber top-level property

RegExp isNumber
final

Implementation

final RegExp isNumber = new RegExp(r'^\-?\d*\.?\d*$')