initILib method

void initILib()

Implementation

void initILib() {
  try {
    if (!_iLibPrepared) {
      _jsRuntime.evaluate(_loadJSResult);
      _jsRuntime.evaluate(_loadLocaleJSResult);
      _iLibPrepared = true;
    }
  } on PlatformException catch (e) {
    debugPrint('Failed to init js engine: ${e.details}');
    rethrow;
  }
}