read method

  1. @override
Future<Map<String, dynamic>> read()
override

Implementation

@override
Future<Map<String, dynamic>> read() async {
  final file = File(await _directoryProvider.getFilesDir(_rootPath));
  final json = await file.readAsString();
  final map = _mapper.decode(json);
  return map;
}