Skip to content

Commit

Permalink
fix: add @immutable to EquatableMixin (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Oct 10, 2022
1 parent 2117551 commit 6de8b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/equatable_mixin.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:meta/meta.dart';

import 'equatable.dart';
import 'equatable_config.dart';
import 'equatable_utils.dart';
Expand All @@ -7,6 +9,7 @@ import 'equatable_utils.dart';
///
/// Like with extending [Equatable], the [EquatableMixin] overrides the
/// [operator ==] as well as the [hashCode] based on the provided [props].
@immutable
mixin EquatableMixin {
/// {@macro equatable_props}
List<Object?> get props;
Expand Down

0 comments on commit 6de8b97

Please sign in to comment.