EmergentToggle constructor
const
EmergentToggle({
- EmergentToggleStyle? style = const EmergentToggleStyle(),
- Key? key,
- required List<
ToggleElement> children, - required Widget thumb,
- EdgeInsets padding = const EdgeInsets.all(2),
- Duration duration = const Duration(milliseconds: 200),
- int selectedIndex = 0,
- Curve alphaAnimationCurve = Curves.linear,
- Curve movingCurve = Curves.linear,
- dynamic onAnimationChangedFinished()?,
- ValueChanged<
int> ? onChanged, - double height = 40,
- double? width,
- bool isEnabled = true,
- bool displayForegroundOnlyIfSelected = true,
Implementation
const EmergentToggle({
this.style = const EmergentToggleStyle(),
Key? key,
required this.children,
required this.thumb,
this.padding = const EdgeInsets.all(2),
this.duration = const Duration(milliseconds: 200),
this.selectedIndex = 0,
this.alphaAnimationCurve = Curves.linear,
this.movingCurve = Curves.linear,
this.onAnimationChangedFinished,
this.onChanged,
this.height = 40,
this.width,
this.isEnabled = true,
this.displayForegroundOnlyIfSelected = true,
}) : super(key: key);