Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (18 loc) · 659 Bytes

SWITCH.md

File metadata and controls

22 lines (18 loc) · 659 Bytes

  Widget _buildSwitch() => AppSwitchWidget(
    value: isSwitchOn,
    onToggle: (bool newValue) {
      setState(() {
        isSwitchOn = newValue;
      });
    },
);

Attributes ⚙️

attribute name Datatype Default Value Description
value bool required flag, that describe state, on or off
onToggle ValueChanged<bool>? required callback, via which you can receive new state
key Key? null key identifier