getSelectionStyle method

Style getSelectionStyle()

Only attributes applied to all characters within this range are included in the result.

Implementation

Style getSelectionStyle() {
  return document.collectStyle(selection.start, selection.end - selection.start).mergeAll(toggledStyle);
}