loadLib static method

Future<String> loadLib(
  1. String code
)

加载JS库,请勿重复加载相同的code

Implementation

static Future<String> loadLib(String code) {
  if (Platform.isIOS || Platform.isMacOS) {
    return _iosRuntimeReady.future.then((value) {
      return _doTask(code, isSandbox: false);
    });
  } else {
    return _doTask(code, isSandbox: false);
  }
}