blob: 00d61871f96ba7d687bd38e776c1ffa4de8c9bf1 [file]
// Copyright 2020 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
/// An abstract implementation of a key value store.
///
/// We have concrete implementations for Flutter web, Flutter desktop, and
/// Flutter web when launched from the DevTools server.
abstract class Storage {
/// Return the value associated with the given key.
Future<String?> getValue(String key);
/// Set a value for the given key.
Future<void> setValue(String key, String value);
}