date constant

String const date

Implementation

static const date = r'^\d{4}-\d{2}-\d{2}$';