IconToggle constructor

IconToggle({
  1. IconData unselectedIconData = Icons.radio_button_unchecked,
  2. IconData selectedIconData = Icons.radio_button_checked,
  3. Color activeColor = Colors.blue,
  4. Color inactiveColor = Colors.grey,
  5. bool value = false,
  6. ValueChanged<bool>? onChanged,
  7. AnimatedSwitcherTransitionBuilder transitionBuilder = _defaultTransitionBuilder,
  8. Duration duration = const Duration(milliseconds: 100),
  9. 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,
});