Flutter
Is new design vision part implemented using new tokens?
Flutter
Is new design vision part implemented using new tokens?
OptimusToggle(
offIcon: OptimusIcons.lock,
onIcon: OptimusIcons.unlock,
isChecked: _isChecked,
onChanged:
(value) => setState(() => _isChecked = value),
)
Name |
Description |
Type |
Default |
---|---|---|---|
onIcon |
Icon for the on state |
IconData? |
|
offIcon |
Icon for the off state |
IconData? |
|
onChange |
Callback on the state change. If not provided, the switch will be disabled. |
ValueChanged<bool>? |
|
isChecked |
The state of the switch |
bool |
false |