existsSync method Null safety

bool existsSync(
  1. String name,
  2. {String? directory}
)

Checks whether a database of the given name exists in the given directory or not.

Implementation

static bool existsSync(String name, {String? directory}) =>
    SyncDatabase.exists(name, directory: directory);