JsonSwitchBuilder class

Inheritance

Constructors

JsonSwitchBuilder({required dynamic args})
const

Properties

args → dynamic
finalinherited
hashCode int
The hash code for this object.
no setterinherited
preferredSizeWidget bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Constant that can be referenced for the builder's type.
no setteroverride

Methods

build({required ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data}) Widget
Builds the widget. If there are dynamic keys on the data object, and the widget is not a PreferredSizeWidget, then the returned widget will be wrapped by a stateful widget that will rebuild if any of the dynamic args change in value.
inherited
buildCustom({ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data, Key? key}) → _Switch
Builds the widget to render to the tree. If the data object has a non-empty id associated with it and the enabled property is true then this will attach the selected value to the JsonWidgetRegistry using the id as the key any time the selected value is changed.
createModel({ChildWidgetBuilder? childBuilder, required JsonWidgetData data}) JsonSwitchBuilderModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, {JsonWidgetRegistry? registry}) JsonSwitchBuilder
Static function that is capable of decoding the widget from a dynamic JSON or YAML set of values.

Constants

kType → const String