initSecondary method Null safety

void initSecondary(
  1. Object context
)

Initializes the cbl package, for a secondary isolate.

A value for context can be obtained from CouchbaseLite.context.

Implementation

static void initSecondary(Object context) {
  if (context is! IsolateContext) {
    throw ArgumentError.value(context, 'context', 'is invalid');
  }

  initIsolate(context);
}