binary constant
Pattern
const binary
Binary regex Consist only 0 & 1
Implementation
static const Pattern binary = r'^[0-1]*$';
Binary regex Consist only 0 & 1
static const Pattern binary = r'^[0-1]*$';