flow_widget_annotation 1.0.0 copy "flow_widget_annotation: ^1.0.0" to clipboard
flow_widget_annotation: ^1.0.0 copied to clipboard

Annotations for flow_widget code generation. Pair with package:flow_widget_generator and build_runner.

flow_widget_annotation #

Annotations for flow_widget code generation.

Pair this package with flow_widget_generator and build_runner to generate typed toFlowEntries() / fromFlowEntries() serializers for widget data models.

Annotations #

Annotation Purpose
@FlowWidgetModel Marks a class for code generation
@FlowWidgetKey('custom') Overrides the storage key for a field
@FlowWidgetIgnore Excludes a field from generated serializers

Setup #

dependencies:
  flow_widget_annotation: ^1.0.0

dev_dependencies:
  build_runner: ^2.4.13
  flow_widget_generator: ^1.0.0

See flow_widget_generator for usage examples.

License #

MIT — see LICENSE.

0
likes
150
points
36
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Annotations for flow_widget code generation. Pair with package:flow_widget_generator and build_runner.

Repository (GitHub)
View/report issues

Topics

#widget #home-widget #code-generation #annotations

License

MIT (license)

More

Packages that depend on flow_widget_annotation