DeferredJsonWidgetData class

A JsonWidgetData subclass that does not parse the JSON until the values are needed. This is used internally by the library for when widgets are requested through a variable reference because the variable often won't exist until after the first pass of the widget tree processing is completed.

Implemented types

Constructors

DeferredJsonWidgetData({required String key, required JsonWidgetRegistry registry})

Properties

data JsonWidgetData
no setter
hashCode int
The hash code for this object.
no setterinherited
jsonWidgetArgs JsonWidgetBuilder?
no setteroverride
jsonWidgetBuilder JsonWidgetBuilder Function()
no setteroverride
jsonWidgetId String
no setteroverride
jsonWidgetListenVariables Set<String>
no setteroverride
jsonWidgetRegistry JsonWidgetRegistry
no setteroverride
jsonWidgetType String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build({ChildWidgetBuilder? childBuilder, required BuildContext context, JsonWidgetRegistry? registry}) Widget
Convenience method that can build the widget this data object represents. This is the equilivant of calling: builder.build and passing this in as the data parameter.
override
copyWith({dynamic jsonWidgetArgs, JsonWidgetBuilder? jsonWidgetBuilder, Set<String>? jsonWidgetListenVariables, String? jsonWidgetId, JsonWidgetRegistry? jsonWidgetRegistry, String? jsonWidgetType}) JsonWidgetData
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
override
toString() String
A string representation of this object.
inherited

Operators

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