onTapCancel method

  1. @override
  2. @mustCallSuper
void onTapCancel(
  1. TapCancelEvent event
)
override

Implementation

@override
@mustCallSuper
void onTapCancel(TapCancelEvent event) {
  if (buttonDown != null) {
    buttonDown!.removeFromParent();
    button!.parent = this;
  }
  onCancelled?.call();
}