equatable_annotations 1.0.0
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;
}