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