formatSelection method

void formatSelection(
  1. Attribute? attribute
)

Implementation

void formatSelection(Attribute? attribute) {
  formatText(selection.start, selection.end - selection.start, attribute);
}