noneValue property

String get noneValue

Return "NONE" if all enum values are uppercase or "none" if not.

Implementation

String get noneValue =>
    values.every((e) => e == e.toUpperCase()) ? "NONE" : "none";