format method

void format(
  1. int from,
  2. int length,
  3. Map<String, dynamic> attributes
)

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},
      },
    ],
  });
}