displayName property

String get displayName

Converts this Protobuf boolean into a human readable string.

Implementation

String get displayName => switch(this) {
  BoolState.NO => "No",
  BoolState.YES => "Yes",
  BoolState.BOOL_UNDEFINED => "No Data",
  _ => throw ArgumentError("Unrecognized bool state: $this"),
};