getAllSelectionStyles method
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;
}