getAllData method

Future<Map<String, dynamic>> getAllData(
  1. String database,
  2. String password
)

Implementation

Future<Map<String, dynamic>> getAllData(
    String database, String password) async {
  var file = await _databaseFileService.getFile(database);
  String content = await _databaseFileService.getFileContent(file);
  String secretKey = await _getSecretKey(file);
  return EncodingDecodingService.walfJsonDecode(content, secretKey, password);
}