GoogleAppsCardV1SwitchControl class

Either a toggle-style switch or a checkbox inside a decoratedText widget.

[Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): Only supported in the decoratedText widget.

Constructors

GoogleAppsCardV1SwitchControl({String? controlType, String? name, GoogleAppsCardV1Action? onChangeAction, bool? selected, String? value})
GoogleAppsCardV1SwitchControl.fromJson(Map json_)

Properties

controlType String?
How the switch appears in the user interface.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The name by which the switch widget is identified in a form input event.
getter/setter pair
onChangeAction GoogleAppsCardV1Action?
The action to perform when the switch state is changed, such as what function to run.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool?
When true, the switch is selected.
getter/setter pair
value String?
The value entered by a user, returned as part of a form input event.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited