switchBtn

How to write by SpWML

(switchBtn)
// only material v3
(switchBtn, type:check)

Summary

A block that has no child blocks.

An ON/OFF switch is placed where this block is placed.

It has a variable with parameters equivalent to Flutter Switch class .

To use this type, it is necessary to set FlagManager to SpWMLBuilder or SpWML widget.

Also, if no value is selected, the manager has no value.


Dart Class Reference

SwitchBtnElement class


SpWML Parameters

  • The common parameters.

  • color (String). Color setting. The color system .

  • check (bool). It changes to a switch with a check icon only when Material V3 is enabled.

  • isEnabled (bool). Set to false if you want to disable this elements.