derive_annotation 0.1.0 copy "derive_annotation: ^0.1.0" to clipboard
derive_annotation: ^0.1.0 copied to clipboard

Base Dust derive annotations for Dart models and future extension packages.

example/main.dart

import 'package:derive_annotation/derive_annotation.dart';

@Derive([ToString(), Eq(), CopyWith()])
class User {
  final String id;
  final String? name;

  const User(this.id, this.name);
}

void main() {
  const user = User('user-1', 'May');
  print(user.id);
}
0
likes
160
points
123
downloads

Documentation

API reference

Publisher

verified publisherwidget-lab.dev

Weekly Downloads

Base Dust derive annotations for Dart models and future extension packages.

Repository (GitHub)
View/report issues
Contributing

Topics

#codegen #annotations #dust

License

MIT (license)

Dependencies

collection

More

Packages that depend on derive_annotation