textReplaced property Null safety

String textReplaced

The original text that is being replaced in oldText.

Implementation

String get textReplaced => oldText.substring(replacedRange.start, replacedRange.end);