dart_meta_types icon indicating copy to clipboard operation
dart_meta_types copied to clipboard

a code gen solution for defining sealed classes, data classes, and enum classes for dart.

Results 10 dart_meta_types issues
Sort by recently updated
recently updated
newest added

``` @MetaJson() @DataClass() abstract class $CalendarResult { List get items; } ``` here is what happens ``` { "items: [{a: a},{b: b}] } ``` but what if i wanted to...

Gives in valid arguments error on updating the build runner.

In dataclass constructors, do no require Nullable fields, but leave them optional with a default value of Nullable.nil()

valueOf is not currently generated for DataClass or SealedClass isSet is not currently generated for SealedClass

a static when function should be generated for enum classes

When lists and maps are used in sealed and data classes, the generator should create an unmodifiable version of the collection passed to the constructor or clone method.

hashCode should hash all values in collection types similar to built_collection

Rather than recomputing hashcode every time it is called, cache the result and reuse it for future calls

Currently, meta_types_json_generator can only handle lists/sets/maps with primitive or meta-type generics. It should be able to handle nested collections such as List

The generator should generate toString() implementations for DataClass and SealedClass