Future<bool> databaseExists() async { documentDirectory ??= (await getApplicationDocumentsDirectory()).path; var file = File('$documentDirectory/kvs-$name.json'); return file.exists(); }