onTapDown method

  1. @override
  2. @mustCallSuper
void onTapDown(
  1. TapDownEvent event
)
override

Implementation

@override
@mustCallSuper
void onTapDown(TapDownEvent event) {
  if (_isDisabled) {
    return;
  }
  onPressed?.call();
  isPressed = true;
  updateState();
}