data_class

Experimental support for data classes in Dart using macros.

MIT License

Stars
163
Committers
2

Bot releases are visible (Hide)

data_class - v0.0.0-dev.7 Latest Release

Published by felangel 5 months ago

  • feat: add @Constructable macro (const constructor)
  • feat: add @Equatable macro (operator== and hashCode)
  • feat: add @Stringable macro (toString)
  • feat: add @Copyable macro (copyWith)
  • feat: make nullable fields optional constructor params
  • feat: throw if a default constructor already exists
data_class - v0.0.0-dev.6

Published by felangel 5 months ago

  • refactor: rename @Struct() to @Data() to avoid confusion
data_class - v0.0.0-dev.5

Published by felangel 5 months ago

  • deps: remove unnecessary dependency on package:equatable
  • docs: add topics to pubspec.yaml
data_class - v0.0.0-dev.4

Published by felangel 5 months ago

  • feat: copyWith support for setting nullable fields to null
  • docs: improved example and README.md
data_class - v0.0.0-dev.3

Published by felangel 5 months ago

  • feat: support for empty classes
  • docs: improved example and README.md
  • tests: unit tests
data_class - v0.0.0-dev.1

Published by felangel 5 months ago

  • fix: Error: MacroImplementationExceptionImp
data_class - v0.0.0-dev.2

Published by felangel 5 months ago

  • feat: generate named constructor
  • feat: generate doc comments for copyWith
  • docs: README.md improvements