init method

Future<void> init(
  1. PlatformInterface platformInterface
)

Initialize the VDOM API with a platform interface

Implementation

Future<void> init(PlatformInterface platformInterface) async {
  try {
    _vdom = VDom(platformInterface);
    await _vdom.isReady;
    _readyCompleter.complete();
  } catch (e) {
    _readyCompleter.completeError(e);
    rethrow;
  }
}