value property

int get value

Implementation

int get value {
  switch (this) {
    case RequiredField.required:
      return 1;
    case RequiredField.notRequired:
      return 0;
  }
}