formatSelection method

void formatSelection(
  1. Attribute? attribute, {
  2. @experimental bool shouldNotifyListeners = true,
})

Implementation

void formatSelection(Attribute? attribute,
    {@experimental bool shouldNotifyListeners = true}) {
  formatText(
    selection.start,
    selection.end - selection.start,
    attribute,
    shouldNotifyListeners: shouldNotifyListeners,
  );
}