# NeoSwitch **Description:** `NeoSwitch` is a custom widget that acts as a switch or toggle button. --- **UI States:** ![Screenshot 2024-01-02 at 14.26.04](https://hackmd.io/_uploads/SkXW7_bda.png) ## Parameters | Parameter Name | Type | Is Required | Description | Default Value | | -------------- | ----------------------- | ----------- | --------------------------------------- | ------------------------- | | dataKey | String | Yes | Key to identify the switch data | - | | initialValue | bool | No | Initial value of the switch | false | | padding | EdgeInsetsDirectional | No | Padding around the switch | EdgeInsetsDirectional.zero| --- ## Example Response ```json { "type": "neo_switch", "args": { "dataKey": "switch_key", "initialValue": true, "padding": 10 } }