BasicToggleSwitch constructor

const BasicToggleSwitch(
  1. {Key? key,
  2. required void onChanged(
    1. bool res
    ),
  3. bool initialValue = false,
  4. SwitchIconPosition position = SwitchIconPosition.onSwitch,
  5. Icon? offIcon = const Icon(Icons.close_rounded),
  6. Icon? onIcon = const Icon(Icons.check_rounded)}
)

Implementation

const BasicToggleSwitch(
    {super.key,
    required this.onChanged,
    this.initialValue = false,
    this.position = SwitchIconPosition.onSwitch,
    this.offIcon = const Icon(Icons.close_rounded),
    this.onIcon = const Icon(Icons.check_rounded)});