Toggle constructor

const Toggle({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. required Widget child,
  5. ButtonStyle style = const ButtonStyle.ghost(),
})

Implementation

const Toggle({
  super.key,
  required this.value,
  this.onChanged,
  required this.child,
  this.style = const ButtonStyle.ghost(),
});