IconToggle constructor
IconToggle({
- IconData unselectedIconData = Icons.radio_button_unchecked,
- IconData selectedIconData = Icons.radio_button_checked,
- Color activeColor = Colors.blue,
- Color inactiveColor = Colors.grey,
- bool value = false,
- ValueChanged<
bool> ? onChanged, - AnimatedSwitcherTransitionBuilder transitionBuilder = _defaultTransitionBuilder,
- Duration duration = const Duration(milliseconds: 100),
- Duration? reverseDuration,
Implementation
IconToggle({
this.unselectedIconData = Icons.radio_button_unchecked,
this.selectedIconData = Icons.radio_button_checked,
this.activeColor = Colors.blue,
this.inactiveColor = Colors.grey,
this.value = false,
this.onChanged,
this.transitionBuilder = _defaultTransitionBuilder,
this.duration = const Duration(milliseconds: 100),
this.reverseDuration,
});