toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TextTypes.line:
      return 'LINE';
    case TextTypes.word:
      return 'WORD';
  }
}