ToggleIcon constructor

const ToggleIcon({
  1. Key? key,
  2. bool isSelected = false,
  3. ToggleIconState? state,
  4. ValueChanged<bool>? onSelectedChanged,
  5. ValueChanged<ToggleIconState>? onChanged,
  6. IconData icon = Icons.star_border,
  7. IconData? selectedIcon = Icons.star,
  8. Color? activeColor,
  9. Color? inactiveColor,
  10. double size = 24.0,
})

Implementation

const ToggleIcon({
  super.key,
  this.isSelected = false,
  this.state,
  this.onSelectedChanged,
  this.onChanged,
  this.icon = Icons.star_border,
  this.selectedIcon = Icons.star,
  this.activeColor,
  this.inactiveColor,
  this.size = 24.0,
});