getInstance method Null safety

Future<CoreStoreSembastImp> getInstance(
  1. {DatabaseFactory? factory,
  2. String? password}
)
override

Implementation

static Future<CoreStoreSembastImp> getInstance(
    {DatabaseFactory? factory, String? password}) async {
  _sembastImp ??= await sdk.CoreStoreSembastImp.getInstance(
      await dbDirectory(),
      factory: factory,
      password: password);
  return CoreStoreSembastImp._();
}