HoldButton constructor
const
HoldButton({
- Key? key,
- required String label,
- required VoidCallback onCompleted,
- String completedLabel = 'Confirmed',
- Duration duration = const Duration(milliseconds: 1500),
- Color? color,
- IconData? icon = Icons.lock_outline_rounded,
- double height = 48.0,
- double? width,
- bool expanded = false,
- 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,
});