highlights property

List<(num, num)>? get highlights

Ranges in the label to highlight. A range is defined as a tuple of two number where the first is the inclusive start index and the second the exclusive end index

Implementation

_i2.List<
    (
      _i2.num,
      _i2.num,
    )>? get highlights => (_i5.getProperty(
      this,
      'highlights',
    ) as _i2.List?)
        ?.cast();
set highlights (List<(num, num)>? value)

Implementation

set highlights(
    _i2.List<
            (
              _i2.num,
              _i2.num,
            )>?
        value) {
  _i5.setProperty(
    this,
    'highlights',
    value
            ?.map((i) => [
                  i.$1,
                  i.$2,
                ])
            .toList() ??
        _i6.undefined,
  );
}