Skip to content

Commit 6de8b97

Browse files
authored
fix: add @immutable to EquatableMixin (#154)
1 parent 2117551 commit 6de8b97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/equatable_mixin.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:meta/meta.dart';
2+
13
import 'equatable.dart';
24
import 'equatable_config.dart';
35
import 'equatable_utils.dart';
@@ -7,6 +9,7 @@ import 'equatable_utils.dart';
79
///
810
/// Like with extending [Equatable], the [EquatableMixin] overrides the
911
/// [operator ==] as well as the [hashCode] based on the provided [props].
12+
@immutable
1013
mixin EquatableMixin {
1114
/// {@macro equatable_props}
1215
List<Object?> get props;

0 commit comments

Comments
 (0)