onForcePressStart method

  1. @override
void onForcePressStart(
  1. ForcePressDetails details
)
override

Handler for TextSelectionGestureDetector.onForcePressStart.

By default, it selects the word at the position of the force press, if selection is enabled.

This callback is only applicable when force press is enabled.

See also:

Implementation

@override
void onForcePressStart(ForcePressDetails details) {
  super.onForcePressStart(details);
  if (delegate.selectionEnabled && shouldShowSelectionToolbar) {
    showToolbar();
  }
}