RepeatButton constructor

const RepeatButton({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback onPressed,
  4. Duration initialDelay = const Duration(milliseconds: 300),
  5. Duration repeatDelay = const Duration(milliseconds: 100),
})

Implementation

const RepeatButton({
  Key? key,
  required this.child,
  required this.onPressed,
  this.initialDelay = const Duration(milliseconds: 300),
  this.repeatDelay = const Duration(milliseconds: 100),
}) : super(key: key);