StyledSwitch constructor

const StyledSwitch({
  1. Key? key,
  2. required void onChange(
    1. bool isToggled
    ),
  3. required bool enabled,
})

Implementation

const StyledSwitch({Key? key, required this.onChange, required this.enabled})
    : super(key: key);