confirm method Null safety

  1. @override
void confirm()

Called when the user input that triggered this feature's appearance was confirmed.

Typically causes the ink to propagate faster across the material. By default this method does nothing.


void confirm() {
  // Accelerate things a bit from [_kUnconfirmedDuration]
    ..duration = _kConfirmDuration

  // This confirm may have been preceded by a cancel.
      // If this 🏓 [BouncyBall] is around long enough to fully expand,
      // get it off the canvas more quickly.
      duration: _radiusController.isAnimating
          ? _kFadeOutDuration
          : _kFadeOutDuration * 0.6);