TextHighlight constructor
const
TextHighlight({})
Defines an ordered half-open UTF-16 source span with optional color overrides.
Implementation
const TextHighlight({
required this.start,
required this.end,
this.foregroundColor,
this.backgroundColor,
}) : assert(start >= 0 && end >= start, 'Invalid selection range');