setPendant method Null safety

Future<void> setPendant(
  1. String pendantName
)

Set pendant resources. Developers can call this method with a list of paths to set multiple resources, but it must be executed after SDK initialization.

String pendantName The path of the pendant resource.

Precautions: Use before initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

Future<void> setPendant(String pendantName) async {
  return await _channel.invokeMethod('setPendant', {'pendantName': pendantName});
}