JsonWidgetData class

Implementers

Constructors

JsonWidgetData({dynamic args, required JsonWidgetBuilder builder(), JsonWidgetData? child, List<JsonWidgetData>? children, Set<String>? listenVariables, String? id, dynamic originalChild, dynamic originalChildren, JsonWidgetRegistry? registry, required String type})

Properties

args → dynamic
final
builder JsonWidgetBuilder Function()
final
children List<JsonWidgetData>?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
listenVariables Set<String>
final
originalChild → dynamic
final
originalChildren → dynamic
final
registry JsonWidgetRegistry
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final

Methods

build({ChildWidgetBuilder? childBuilder, required BuildContext context}) Widget
Convenience method that can build the widget this data object represents. This is the equilivant of calling: builder.build and padding this in as the data parameter.
copyWith({dynamic args, JsonWidgetBuilder? builder, List<JsonWidgetData>? children, Set<String>? listenVariables, String? id, dynamic originalChild, dynamic originalChildren, JsonWidgetRegistry? registry, String? type}) JsonWidgetData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recreate([JsonWidgetRegistry? newRegistry]) JsonWidgetData
Recreates the data object based on the updated values and function responces from the registry. This should only be called within the framework itself, external code should not need to call this.
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, {JsonWidgetRegistry? registry}) JsonWidgetData?
Decodes a JSON object into a dynamic widget. The structure is the same for all dynamic widgets with the exception of the args value. The args depends on the specific type.