formatText method
Implementation
void formatText(
Node node,
int index,
int length,
Attributes attributes,
) {
final delta = node.delta;
if (delta == null) {
return;
}
afterSelection = beforeSelection;
final format = Delta()
..retain(index)
..retain(length, attributes: attributes);
addDeltaToComposeMap(node, format);
}