textBefore property

String textBefore

Text before the highlighted text.

Implementation

String get textBefore {
  if (range == TextRange.empty) {
    return '';
  }

  return range.textBefore(text);
}