updateText method
Updates the TextNodeV0 at the given Path
Implementation
bool updateText(Path path, Delta delta) {
if (path.isEmpty) {
return false;
}
final target = nodeAtPath(path);
if (target == null || target is! TextNodeV0) {
return false;
}
target.delta = target.delta.compose(delta);
return true;
}