handleDatabaseExists method

Future<bool> handleDatabaseExists()

Handle databaseExists.

Implementation

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