Skip to content

Commit caa039c

Browse files
committed
added protected annotation
1 parent c4d1079 commit caa039c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.1
2+
3+
- Added `meta` dependency
4+
- Annotated some members with `@protected`
5+
16
## 0.9.0
27

38
- Initial version.

lib/src/fast_equatable.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ import 'package:fast_equatable/src/data/i_fast_equatable.dart';
22
import 'package:fast_equatable/src/equality.dart';
33
import 'package:fast_equatable/src/i_hash_engine.dart';
44
import 'package:fast_equatable/src/jenkins_hash_engine.dart';
5+
import 'package:meta/meta.dart';
56

67
mixin FastEquatable implements IFastEquatable {
78
int? _cachedHash;
89

910
@override
11+
@protected
1012
final bool additionalEqualityCheck = true;
1113

1214
@override
15+
@protected
1316
IHashEngine get hashEngine => const JenkinsHashEngine();
1417

1518
@override

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fast_equatable
22
description: A simple Dart package that provides fast and secure equality comparison as a mixin. It optionally offers hash caching to improve the speed of Map's and Set's significantly.
3-
version: 0.9.0
3+
version: 0.9.1
44
repository: https://github.com/FaFre/fast_equatable
55

66
environment:
@@ -11,3 +11,4 @@ dev_dependencies:
1111
test: ^1.16.0
1212
dependencies:
1313
collection: ^1.15.0
14+
meta: ^1.8.0

0 commit comments

Comments
 (0)