getValue method

dynamic getValue()

Converts this enum's values to String.

Implementation

dynamic getValue() {
  switch (this) {
    case TranslationToggle.off:
      return false;
    case TranslationToggle.on:
      return true;
    case TranslationToggle.auto:
      return 'auto';
  }
}