write method

  1. @override
Future<bool> write(
  1. Map<String, dynamic> data
)
override

Implementation

@override
Future<bool> write(Map<String, dynamic> data) async {
  final path = await _directoryProvider.getFilesDir(_rootPath);
  print(path);
  final file = File(path);
  await file.writeAsString(_mapper.encode(data), mode: FileMode.write);
  return true;
}