setLicence static method

Future<void> setLicence(
  1. String url,
  2. String key
)

Implementation

static Future<void> setLicence(String url, String key) async {
  LiveLoadDynamicLib.getPluginChannel().invokeMethod('initialize');
  ffi.Pointer<ffi.Int8> nativeURL = url.toNativeUtf8().cast<ffi.Int8>();
  ffi.Pointer<ffi.Int8> nativeKey = key.toNativeUtf8().cast<ffi.Int8>();
  _premierFFIBindings.setLicence(nativeURL, nativeKey);

  calloc.free(nativeURL);
  calloc.free(nativeKey);
}