BasicToggleSwitch constructor
const
BasicToggleSwitch(- {Key? key,
- required void onChanged(
- bool res
),
- bool initialValue = false,
- SwitchIconPosition position = SwitchIconPosition.onSwitch,
- Icon? offIcon = const Icon(Icons.close_rounded),
- Icon? onIcon = const Icon(Icons.check_rounded)}
)
Implementation
const BasicToggleSwitch(
{super.key,
required this.onChanged,
this.initialValue = false,
this.position = SwitchIconPosition.onSwitch,
this.offIcon = const Icon(Icons.close_rounded),
this.onIcon = const Icon(Icons.check_rounded)});