Skip to content

Commit e8f3ed7

Browse files
committed
Updated: return type
1 parent 6b5a670 commit e8f3ed7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/vaahextendflutter/services/storage/local/extendable.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,48 +66,49 @@ class LocalStorageExtendable {
6666
return LocalStorage.readAll(collectionName: collectionName);
6767
}
6868

69-
Future<void> update({
69+
Future<StorageResponse> update({
7070
String collectionName = defaultCollectionName,
7171
required String key,
7272
required String value,
7373
}) {
7474
return LocalStorage.update(key: key, value: value);
7575
}
7676

77-
Future<void> updateMany({
77+
Future<StorageResponse> updateMany({
7878
String collectionName = defaultCollectionName,
7979
required Map<String, String> values,
8080
}) {
8181
return LocalStorage.updateMany(values: values);
8282
}
8383

84-
Future<void> createOrUpdate({
84+
Future<StorageResponse> createOrUpdate({
8585
String collectionName = defaultCollectionName,
8686
required String key,
8787
required String value,
8888
}) {
8989
return LocalStorage.createOrUpdate(key: key, value: value);
9090
}
9191

92-
Future<void> createOrUpdateMany({
92+
Future<StorageResponse> createOrUpdateMany({
9393
String collectionName = defaultCollectionName,
9494
required Map<String, String> values,
9595
}) {
9696
return LocalStorage.createOrUpdateMany(values: values);
9797
}
9898

99-
Future<void> delete({String collectionName = defaultCollectionName, required String key}) {
99+
Future<StorageResponse> delete(
100+
{String collectionName = defaultCollectionName, required String key}) {
100101
return LocalStorage.delete(collectionName: collectionName, key: key);
101102
}
102103

103-
Future<void> deleteMany({
104+
Future<StorageResponse> deleteMany({
104105
String collectionName = defaultCollectionName,
105106
List<String> keys = const [],
106107
}) {
107108
return LocalStorage.deleteMany(keys: keys);
108109
}
109110

110-
Future<void> deleteAll({String collectionName = defaultCollectionName}) {
111+
Future<StorageResponse> deleteAll({String collectionName = defaultCollectionName}) {
111112
return LocalStorage.deleteAll(collectionName: collectionName);
112113
}
113114
}

0 commit comments

Comments
 (0)