equatable_annotations 1.0.0 copy "equatable_annotations: ^1.0.0" to clipboard
equatable_annotations: ^1.0.0 copied to clipboard

Provides annotations for the 'equatable_gen' code generator, used with the 'equatable' package

example/main.dart

import 'package:equatable_annotations/equatable_annotations.dart';
import 'package:equatable/equatable.dart';

part 'main.g.dart';

@generateProps
class ExampleClass extends Equatable {
  const ExampleClass({
    required this.value,
    this.ignored,
    this.optional,
  });

  final String? optional;
  final String value;

  @ignore
  final String? ignored;
}
0
likes
150
points
139
downloads

Publisher

verified publishermrgnhnt.com

Weekly Downloads

Provides annotations for the 'equatable_gen' code generator, used with the 'equatable' package

Homepage
View/report issues

Topics

#equatable #equality #equals #props #generator

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

meta

More

Packages that depend on equatable_annotations