value property Null safety

String? value

Implementation

String? get value {
  switch (this) {
    case VisibilityRule.on:
      return "on";
    case VisibilityRule.off:
      return "off";
    case VisibilityRule.simplified:
      return "simplified";
    default:
      return null;
  }
}