getAllSelectionStyles method

List<Style> getAllSelectionStyles()

Returns all styles for any character within the specified text range.

Implementation

List<Style> getAllSelectionStyles() {
  final styles = document.collectAllStyles(selection.start, selection.end - selection.start)..add(toggledStyle);
  return styles;
}