buildSwitch method
Implementation
Widget buildSwitch(
BuildContext context, {
Widget? leading,
Widget? trailing,
}) =>
Switch(
leading: leading,
trailing: trailing,
value: value ?? false,
onChanged: (v) =>
onChanged != null ? onChanged!(v == CheckboxState.checked) : null,
);