TapCountDetector constructor

const TapCountDetector({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback onTriggered,
  4. int requiredTaps = 5,
  5. int windowMs = 3000,
  6. bool enabled = true,
})

Creates a TapCountDetector.

Implementation

const TapCountDetector({
  super.key,
  required this.child,
  required this.onTriggered,
  this.requiredTaps = 5,
  this.windowMs = 3000,
  this.enabled = true,
});