init static method

Future<void> init()

Initializes the cbl package, for the main isolate.

Implementation

static Future<void> init() =>
    asyncOperationTracePoint(InitializeOp.new, () async {
      if (Platform.isAndroid) {
        await _preloadLibrariesForAndroid();
      }

      await initPrimaryIsolate(IsolateContext(
        libraries: CblFlutterPlatform.instance.libraries(),
        initContext: await _context(),
      ));
    });