Skip to content

feat: rewrite using macros #175

@felangel

Description

@felangel

With macros on the horizon, it will be possible to implement equatable using macros which will both improve the performance of equality comparisons and significantly simplify the usage.

Before

class Person extends Equatable {
  const Person({required this.name});
  final String name;

  @override
  List<Object> get props => [name];
}

After

@Equatable()
class Person {
  const Person({required this.name});
  final String name;
}

See also https://github.com/felangel/data_class which will be built on top of package:equatable.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions