getAllIndividualSelectionStyles method

List<OffsetValue<Style>> getAllIndividualSelectionStyles()

Returns all styles for each node within selection

Implementation

List<OffsetValue<Style>> getAllIndividualSelectionStyles() {
  final styles = document.collectAllIndividualStyles(selection.start, selection.end - selection.start);
  return styles;
}