onScrollRight property Null safety

VoidCallback? onScrollRight

The handler for SemanticsAction.scrollRight.

This is the semantic equivalent of a user moving their finger across the screen from left to right. It should be recognized by controls that are horizontally scrollable.

VoiceOver users on iOS can trigger this action by swiping right with three fingers. TalkBack users on Android can trigger this action by swiping left and then right in one motion path. On Android, onScrollDown and onScrollRight share the same gesture. Therefore, only on of them should be provided.

Implementation

VoidCallback? get onScrollRight => _onScrollRight;
void onScrollRight=(VoidCallback? handler)

Implementation

set onScrollRight(VoidCallback? handler) {
  if (_onScrollRight == handler)
    return;
  final bool hadValue = _onScrollRight != null;
  _onScrollRight = handler;
  if ((handler != null) != hadValue)
    markNeedsSemanticsUpdate();
}