childSwitch method

Widget childSwitch({
  1. AFWidgetID? wid,
  2. required bool value,
  3. required AFOnChangedBoolDelegate onChanged,
})

Implementation

Widget childSwitch({
  AFWidgetID? wid,
  required bool value,
  required AFOnChangedBoolDelegate onChanged
}) {
  return Switch(
    key: keyForWID(wid),
    value: value,
    onChanged: onChanged,
    activeTrackColor: colorLighter(colorPrimary),
    activeColor: colorPrimary,
  );
}