Handle databaseExists.
databaseExists
Future<bool> handleDatabaseExists() async { var path = getPath(); // Ignore failure try { return (File(path!)).existsSync(); } catch (_) { return false; } }