Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
uziassantosferreira committed Jun 30, 2021
1 parent 0a84ab7 commit 37d49e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flutter/beagle/lib/default/default_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
import 'package:beagle/interface/storage.dart';

class DefaultStorage implements Storage {
Map<String, String> store = {};
Map<String, String> storage = {};

@override
Future<void> clear() async {
store.clear();
storage.clear();
}

@override
Future<String> getItem(String key) async {
return store[key];
return storage[key];
}

@override
Future<void> removeItem(String key) async {
store.remove(key);
storage.remove(key);
}

@override
Future<void> setItem(String key, String value) async {
store[key] = value;
storage[key] = value;
}

}

0 comments on commit 37d49e9

Please sign in to comment.