HoldButton constructor

const HoldButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onCompleted,
  4. String completedLabel = 'Confirmed',
  5. Duration duration = const Duration(milliseconds: 1500),
  6. Color? color,
  7. IconData? icon = Icons.lock_outline_rounded,
  8. double height = 48.0,
  9. double? width,
  10. bool expanded = false,
  11. double radius = AppRadius.medium,
})

Implementation

const HoldButton({
  super.key,
  required this.label,
  required this.onCompleted,
  this.completedLabel = 'Confirmed',
  this.duration = const Duration(milliseconds: 1500),
  this.color,
  this.icon = Icons.lock_outline_rounded,
  this.height = 48.0,
  this.width,
  this.expanded = false,
  this.radius = AppRadius.medium,
});