ToggleIcon constructor
const
ToggleIcon({
- Key? key,
- bool isSelected = false,
- ToggleIconState? state,
- ValueChanged<
bool> ? onSelectedChanged, - ValueChanged<
ToggleIconState> ? onChanged, - IconData icon = Icons.star_border,
- IconData? selectedIcon = Icons.star,
- Color? activeColor,
- Color? inactiveColor,
- 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,
});