openSync method Null safety

SyncDatabase openSync(
  1. String name,
  2. [DatabaseConfiguration? config]
)

Opens a Couchbase Lite database with the given name and config, which executes in the current isolate.

If the database does not yet exist, it will be created.

Implementation

// ignore: prefer_constructors_over_static_methods
static SyncDatabase openSync(
  String name, [
  DatabaseConfiguration? config,
]) =>
    SyncDatabase(name, config);