feat(repository): add ability to compare Identity objects

This commit is contained in:
Aleksey Kulikov 2022-05-10 20:42:46 +03:00
parent d231164775
commit 31499ebe07
2 changed files with 6 additions and 1 deletions

View file

@ -826,10 +826,14 @@ class RepositoryCallback {
final String? originUrl;
}
class Identity {
@immutable
class Identity extends Equatable {
/// Identity to use for reflogs.
const Identity({required this.name, required this.email});
final String name;
final String email;
@override
List<Object?> get props => [name, email];
}