syntax property

RegExp syntax
final

The syntax Parser accepts for an int accessor, without a range to check against. A field rather than a getter: the pattern is fixed, and building it per access would allocate on every parse.

Implementation

static final RegExp syntax = RegExp(r'[+-]?\d+');