binary constant

Pattern const binary

Binary regex Consist only 0 & 1

Implementation

static const Pattern binary = r'^[0-1]*$';