plainText property

String get plainText

Returns the plain text without chip characters.

Implementation

String get plainText {
  StringBuffer buffer = StringBuffer();
  String text = value.text;
  for (int i = 0; i < text.length; i++) {
    int codeUnit = text.codeUnitAt(i);
    if (codeUnit < _chipStart || codeUnit > _chipEnd) {
      buffer.writeCharCode(codeUnit);
    }
  }
  return buffer.toString();
}