Skip to content

Commit 907f3c5

Browse files
authored
Fix comment in JsonCacheHive class constructor (#121)
* fix: comment in JsonCacheHive class * update changelog
1 parent 5107bb5 commit 907f3c5

File tree

7 files changed

+135
-216
lines changed

7 files changed

+135
-216
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- fix comment in JsonCacheHive class constructor — [120](https://github.com/dartoos-dev/json_cache/issues/120).
11+
1012
## [1.5.2] - 2023-02-28
1113

14+
### Changed
15+
1216
- bump up dependencies — [117](https://github.com/dartoos-dev/json_cache/issues/117).
1317

1418
## [1.5.1] - 2023-02-05
1519

20+
### Changed
21+
1622
- bump up dependencies — [112](https://github.com/dartoos-dev/json_cache/issues/112).
1723

1824
- stricter linting rules

lib/src/json_cache_cross_local_storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:json_cache/json_cache.dart';
99
/// - [cross local storage](https://pub.dev/packages/cross_local_storage)
1010
class JsonCacheCrossLocalStorage implements JsonCache {
1111
/// Ctor.
12-
JsonCacheCrossLocalStorage(this._prefs);
12+
const JsonCacheCrossLocalStorage(this._prefs);
1313

1414
final LocalStorageInterface _prefs;
1515

lib/src/json_cache_enc_prefs.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:json_cache/json_cache.dart';
1111
/// [encrypted_shared_preferences](https://pub.dev/packages/encrypted_shared_preferences)
1212
class JsonCacheEncPrefs implements JsonCache {
1313
/// [_encPrefs] an [EncryptedSharedPreferences] instance.
14-
JsonCacheEncPrefs(this._encPrefs);
14+
const JsonCacheEncPrefs(this._encPrefs);
1515

1616
// The encrypted preferences file object.
1717
final EncryptedSharedPreferences _encPrefs;

lib/src/json_cache_hive.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:json_cache/json_cache.dart';
55

66
/// Implementation on top of the Hive package.
77
///
8-
/// See: [local storage](https://pub.dev/packages/hive)
8+
/// See: [hive](https://pub.dev/packages/hive)
99
class JsonCacheHive implements JsonCache {
1010
/// Sets the Hive [Box] instance.
1111
const JsonCacheHive(this._box);

lib/src/json_cache_local_storage.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import 'package:localstorage/localstorage.dart';
66
/// See: [local storage](https://pub.dev/packages/localstorage)
77
class JsonCacheLocalStorage implements JsonCache {
88
/// Encapsulates a [LocalStorage] instance.
9-
JsonCacheLocalStorage(this._storage);
9+
const JsonCacheLocalStorage(this._storage);
1010

1111
final LocalStorage _storage;
1212

13-
Future<bool> get _getReady => _storage.ready;
14-
1513
@override
1614
Future<void> clear() async {
1715
await _getReady;
@@ -42,4 +40,6 @@ class JsonCacheLocalStorage implements JsonCache {
4240
final Object? item = _storage.getItem(key);
4341
return item != null;
4442
}
43+
44+
Future<bool> get _getReady => _storage.ready;
4545
}

0 commit comments

Comments
 (0)