currency property

RegExp currency
final

Currency (with optional cents)

Implementation

static final RegExp currency = RegExp(r'^\d+(\.\d{1,2})?$');