onTapDown method

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

Implementation

@override
@mustCallSuper
void onTapDown(TapDownEvent event) {
  if (buttonDown != null) {
    button!.removeFromParent();
    buttonDown!.parent = this;
  }
  onPressed?.call();
}