toTextTypes method

TextTypes toTextTypes()

Implementation

TextTypes toTextTypes() {
  switch (this) {
    case 'LINE':
      return TextTypes.line;
    case 'WORD':
      return TextTypes.word;
  }
  throw Exception('$this is not known in enum TextTypes');
}