onBeforeTextChange method

void onBeforeTextChange(
  1. String oldText,
  2. String newText
)

Optional hook so subclasses can react to text edits before spans shift.

Implementation

void onBeforeTextChange(String oldText, String newText) {}