binary property

String binary
getter/setter pair

Binary regex Consist only 0 & 1

Implementation

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