preload method

  1. @override
Future<void> preload({
  1. bool extractData = true,
})
override

Preload the native models of the sdk.

extractData A boolean indicating whether to use extract data. True by default.

Implementation

@override
Future<void> preload({bool extractData = true}) async {
  try {
    await methodChannel.invokeMethod(MethodName.preload.name, <String, dynamic>{
      ArgumentKey.extractData.name: extractData
    });
  } on PlatformException catch (e) {
    throw PlatformException(code: initFailedCode, message: e.message);
  }
}