intRegStr top-level property

String intRegStr
getter/setter pair

The pattern used by the intReg regular expression. The pattern matches any string that contains a valid integer. The pattern allows for optional leading and trailing digits, an optional decimal point, and an optional exponent part (e.g., e+10 or E-10). The pattern matches any string that contains only digits (0-9).

Implementation

String intRegStr = r'^(?:-?(?:0|[1-9][0-9]*))$';