integer property

RegExp integer
final

Integer (positive and negative)

Implementation

static final RegExp integer = RegExp(r'^-?\d+$');