Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Experiments with upcoming Dart macros

macros

Experiments with upcoming Dart macros

Setup

@Model()

This is a replacement for the freezed and json_serializable packages.

It implements fromJsontoJsoncopyWithtoStringoperator == and hashCode.

See bin/model.dart for an example.

See lib/model.dart for implementation.

Disclaimer

I’ve definitely missed edge cases. Create an issue or a pull request. Do not use it in production yet.

Download and/or contribute to this package on GitHub

https://github.com/millsteed/macros

Exit mobile version