get method

  1. @override
Future get(
  1. String key
)
override

Get a value.

Implementation

@override
Future<dynamic> get(String key) async {
  _assertScope(key);
  final file = File(_filePathFor(key));
  if (!await file.exists()) return null;
  try {
    return jsonDecode(await file.readAsString());
  } catch (_) {
    return null;
  }
}