freezed_annotation 0.11.0+1 copy "freezed_annotation: ^0.11.0+1" to clipboard
freezed_annotation: ^0.11.0+1 copied to clipboard

outdated

Annotations for the freezed code-generator. This package does nothing without freezed too.

0.11.0 #

  • Added @With and @Implements decorators to allow only a specific constructor of a union type to implement an interface:

    @freezed
    abstract class Example with _$Example {
      const factory Example.person(String name, int age) = Person;
    
      @Implements(GeographicArea)
      const factory Example.city(String name, int population) = City;
    }
    

    Thanks to @long1eu~

0.7.1 #

Minor change to @Default to fix an issue with complex default values.

0.7.0 #

Add @Default annotation

0.6.0 #

Added @late annotation.

0.4.0 #

Added a @nullable annotation.

0.3.1 #

Change version of collection to work with flutter_test.

0.3.0 #

Initial release of the annotation package.

454
likes
0
pub points
100%
popularity

Publisher

verified publisherdash-overflow.net

Annotations for the freezed code-generator. This package does nothing without freezed too.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, json_annotation, meta

More

Packages that depend on freezed_annotation