Toggle constructor

const Toggle({
  1. Key? key,
  2. ToggleCallback? onChanged,
  3. bool isEnable = false,
})

Implementation

const Toggle({
  Key? key,
  this.onChanged,
  this.isEnable = false,
}) : super(key: key);