GlassSlideToConfirm constructor
Creates a slide to confirm; threshold must be above 0 and at most 1, and height at least 32.
Implementation
const GlassSlideToConfirm({
super.key,
required this.onConfirmed,
this.label = 'Slide to confirm',
this.confirmedLabel,
this.resetAfter,
this.threshold = 0.9,
this.height = 56,
this.activeColor,
this.shimmer = true,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : assert(threshold > 0 && threshold <= 1),
assert(height >= 32);