autoequal_gen 0.2.0
autoequal_gen: ^0.2.0 copied to clipboard

Codegenerator which can simplify work with 'equatable'. It will generate 'List<Object> props' priviate extensions for all annotated classes.

example/main.dart

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

part 'main.g.dart';

@autoequalMixin
class ExampleClass extends Equatable with _$ExampleClassAutoequalMixin {
  final String value;
  final String? optional;

  @ignoreAutoequal
  final String? ignored;

  ExampleClass({
    required this.value,
    this.ignored,
    this.optional,
  });
}
1
likes
70
pub points
38%
popularity

Codegenerator which can simplify work with 'equatable'. It will generate 'List<Object> props' priviate extensions for all annotated classes.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sunnyday.development@gmail.com

License

MIT (LICENSE)

Dependencies

analyzer, autoequal, build, equatable, source_gen

More

Packages that depend on autoequal_gen