chop method
void
chop()
Implementation
void chop() {
if (_operations.isEmpty) {
return;
}
_plainText = null;
final lastOp = _operations.last;
if (lastOp is TextRetain && (lastOp.attributes?.length ?? 0) == 0) {
_operations.removeLast();
}
}