onMoveCursorForwardByCharacter property

MoveCursorHandler onMoveCursorForwardByCharacter

The handler for SemanticsAction.onMoveCursorForwardByCharacter.

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

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

Implementation

MoveCursorHandler get onMoveCursorForwardByCharacter => _onMoveCursorForwardByCharacter;
void onMoveCursorForwardByCharacter= (MoveCursorHandler handler)

Implementation

set onMoveCursorForwardByCharacter(MoveCursorHandler handler) {
  if (_onMoveCursorForwardByCharacter == handler)
    return;
  final bool hadValue = _onMoveCursorForwardByCharacter != null;
  _onMoveCursorForwardByCharacter = handler;
  if ((handler != null) != hadValue)
    markNeedsSemanticsUpdate();
}