════════ Exception caught by widgets library ═══════════════════════════════════
The following RangeError was thrown building TextHighlight(dirty):
RangeError (start): Invalid value: Not in inclusive range 0..35: -1
The relevant error-causing widget was
TextHighlight
lib/main.dart:103
When the exception was thrown, this was the stack
════════ Exception caught by widgets library ═══════════════════════════════════ The following RangeError was thrown building TextHighlight(dirty): RangeError (start): Invalid value: Not in inclusive range 0..35: -1
The relevant error-causing widget was TextHighlight lib/main.dart:103 When the exception was thrown, this was the stack
0 RangeError.checkValidRange (dart:core/errors.dart:328:7)
1 _StringBase.replaceRange (dart:core-patch/string_patch.dart:607:33)
2 TextHighlight._bind
package:highlight_text/highlight_text.dart:75
3 TextHighlight.build
package:highlight_text/highlight_text.dart:52
4 StatelessElement.build
package:flutter/…/widgets/framework.dart:4569 ... ═════════════════════════