onMoveCursorForwardByWord property Null safety

MoveCursorHandler? onMoveCursorForwardByWord

The handler for SemanticsAction.moveCursorForwardByWord.

This handler is invoked when the user wants to move the cursor in a text field backward by one character.

TalkBack users can trigger this by pressing the volume down key while the input focus is in a text field.

Implementation

MoveCursorHandler? get onMoveCursorForwardByWord => _onMoveCursorForwardByWord;
void onMoveCursorForwardByWord= (MoveCursorHandler? handler)

Implementation

set onMoveCursorForwardByWord(MoveCursorHandler? handler) {
  if (_onMoveCursorForwardByWord == handler)
    return;
  final bool hadValue = _onMoveCursorForwardByWord != null;
  _onMoveCursorForwardByWord = handler;
  if ((handler != null) != hadValue)
    markNeedsSemanticsUpdate();
}