init method

  1. @override
void init(
  1. KrakenController controller
)
override

Implementation

@override
void init(KrakenController controller) {
  _contextDevToolMap[controller.view.contextId] = this;
  _controller = controller;
  // @TODO: Add JS debug support for QuickJS.
  // bool nativeInited = _registerUIDartMethodsToCpp();
  // if (!nativeInited) {
  //   print('Warning: kraken_devtools is not supported on your platform.');
  //   return;
  // }
  spawnIsolateInspectorServer(this, controller);
  _uiInspector = UIInspector(this);
  controller.view.debugDOMTreeChanged = uiInspector!.onDOMTreeChanged;
}