dynamic_widget_annotation library

Classes

JsonArgAlias
An annotation to be placed on the building buildCustom function that can alias a particular parameter. A typical use case for this would be to maintain JSON compatibility if a parameter is renamed, or to standardize names across a family of widgets (like aliasing slivers to children on SliverGrid for consistency).
JsonArgDecoder
An annotation to be placed on a function that can decode (parse) a particular widget parameter. This can be used to perform custom processing, to provide custom defaults, or to simply decode values that have no built in decoders.
JsonArgEncoder
An annotation to be placed on a function that can encode a particular value into a JSON representation.
JsonArgSchema
An annotation to be placed on a function that can provide the schema for a particular widget parameter. This would typically be used in conjunction with the JsonArgDecoder to provide a schema for whatever the custom decoder supports.
JsonBuildArg
An annotation that informs the code generator that a particular widget parameter should be passed along from the building functions own parameter list rather that from the generated model. This would typically only be attached to a JsonWidgetData data or ChildWidgetBuilder childBuilder parameter to let the widget being built have access to those build time values.
JsonBuilder
An annotation that to be attached to a method that is the method that defines the Widget being built. The default methods the code generator looks for are first buildCustom and then _buildCustom. This can be used to provde a non-default build method.
JsonDefaultParam
An annotation to be placed on a buildCustom function to specify the default value to apply to a widget's parameter. This will override any default value the widget itself may have.
JsonPositionedParam
An annotation to be placed on the custom Widget building function to instruct the code generator to use a positional parameter when building the widget rather than a named parameter.
JsonSchemaName
An annotation to be placed on the custom Widget building function to change the default name of the outputted Schema class.
JsonWidget
An annotation to be placed on a class requesting the dynamic widget code generator to generate the dynamic code.
JsonWidgetRegistrar
An annotation to be placed on a class requesting the dynamic widget code generator to generate the registration code for the class.
JsonWidgetRegistration
An annotation to be placed on a method that registers a custom Widget within the class annotated by JsonWidgetRegistrar.