textBefore method Null safety

String textBefore(
  1. String text
)

The text before this range.

Implementation

String textBefore(String text) {
  assert(isNormalized);
  return text.substring(0, start);
}