format method
Implementation
void format(int from, int length, Map<String, dynamic> attributes) {
doc.sendChanges({
"documentID": doc.id,
"changes": [
{
"nodeID": parent!.id,
"formatText": {"from": from, "length": length, "attributes": attributes},
},
],
});
}