json_dynamic_widget library

Classes

ArgProcessor
Arg processor allows to process JsonWidgetData arg into its real value. It also is responsible to calculate (or not) variable names that specified JsonWidgetData depends on. It produces ProcessedArg which contains all that infomations.
ArgProcessors
List of predifinied ArgProcessors.
ArgsExpressionEvaluator
Modification added to ExpressionEvaluator which integrates JsonWidgetRegistry variables and functions.
CurvesValues
DeferredJsonWidgetData
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.
ExpressionArgProcessor
Processor that integrates https://pub.dev/packages/expressions library syntax with JsonWidgetRegistry variables and functions. All expressions should be placed in ${.*} syntax.
InputDecorationDecoder
InputError
IterableArgProcessor
Processor for iterable arg. The processor is processing every value of the arg using JsonWidgetRegistry processsors and it is aggregating all listen variable names. In case of passing listenVariables directly then the aggregation step is skipped.
JsonSizedBoxBuilder
Builder that can build an SizedBox widget. See the fromDynamic for the format.
JsonWidgetBuilder
Builder that builds dynamic widgets from JSON or other Map-like structures. Applications can register their own types and builders through the JsonWidgetRegistry.
JsonWidgetBuilderContainer
Container for a JsonWidgetBuilder builder as well as an associated schema id. The schema id will be used to validate the JSON args against the schema if it is not null. If it is null, no schema validation will be performed against the JSON for this particular builder.
JsonWidgetData
JsonWidgetInternalBuilders
JsonWidgetInternalBuildersBuilder
Used to create the selected subset of all internal builders.
JsonWidgetInternalFunctions
JsonWidgetInternalFunctionsBuilder
Used to create the selected subset of all internal functions.
JsonWidgetRegistry
Registry for both the library provided as well as custom form builders that the application may provide.
JsonWidgetType
MapArgProcessor
Processor for map arg. It is entry point for JsonWidgetData args. If the arg is detected to be JsonWidgetData then processing of such an arg is skipped.
NamedFunctionArg
ProcessedArg
RawArgProcessor
Processor which is accepting any arg and not process arg value at all. That processor should be used as the last processor in the pipeline.
SliverGridDelegateDecoder
WidgetValueChanged

Typedefs

DeferredBuilder = JsonWidgetBuilder Function(JsonWidgetBuilderBuilder builder)
JsonWidgetBuilderBuilder = JsonWidgetBuilder? Function(dynamic map, {JsonWidgetRegistry? registry})
JsonWidgetFunction = dynamic Function({required List? args, required JsonWidgetRegistry registry})

Exceptions / Errors

HandledJsonWidgetException