Toggle constructor
const
Toggle({
- Key? key,
- required bool value,
- ValueChanged<
bool> ? onChanged, - required Widget child,
- ButtonStyle style = const ButtonStyle.ghost(),
Implementation
const Toggle({
super.key,
required this.value,
this.onChanged,
required this.child,
this.style = const ButtonStyle.ghost(),
});