setResourcesPath method Null safety

Future<void> setResourcesPath(
  1. ZegoEffectsResourcesPathParam param
)

Set materials or models at the specified path. Developers can call this method with a list of paths to set multiple resources, but it must be executed before SDK initialization.

ZegoEffectsResourcesPathParam param The paths of materials or models for various effects.

Precautions: Use before initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

Future<void> setResourcesPath(ZegoEffectsResourcesPathParam param) async {
  return await _channel.invokeMethod('setResourcesPath', {
    'common': param.common,
    'faceDetection': param.faceDetection,
    'segmentation': param.segmentation,
    'faceWhitening': param.faceWhitening,
    'makeup': param.makeup,
    'pendant': param.pendant,
    'rosy': param.rosy,
    'teeth': param.teeth
  });
}