add method

void add(
  1. int start,
  2. int end,
  3. Style style
)

Adds a new style range.

Implementation

void add(int start, int end, Style style) {
  _ranges.add(StyleRange(start, end, style));
}