Skip to content

Commit 4964fed

Browse files
Respect storageJson option when creating client
1 parent b79e9c9 commit 4964fed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/lib/utils/store/unsupported.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import 'package:segment_analytics/errors.dart';
44
import 'store.dart';
55

66
class StoreImpl with Store {
7+
final bool storageJson;
8+
StoreImpl({this.storageJson = true});
79
@override
810
Future<Map<String, dynamic>?> getPersisted(String key) {
911
throw PlatformNotSupportedError();
@@ -27,3 +29,6 @@ class StoreImpl with Store {
2729
throw PlatformNotSupportedError();
2830
}
2931
}
32+
33+
// StoreImpl createStoreImpl({bool storageJson = true}) => StoreImpl(storageJson: storageJson);
34+
// }

0 commit comments

Comments
 (0)