addVirtualBackgroundItem method
Add virtual background object.
filePath
the image filePath.
If the function succeeds, the return value is the selected virtual background item.
Implementation
@override
Future<ZoomVideoSdkVirtualBackgroundItem?> addVirtualBackgroundItem(String filePath) async {
var params = <String, dynamic>{};
params.putIfAbsent("filePath", () => filePath);
var itemString = await methodChannel
.invokeMethod<String>('addVirtualBackgroundItem', params)
.then<String>((String? value) => value ?? "");
Map<String, dynamic> itemMap = jsonDecode(itemString!);
var vbItem =
ZoomVideoSdkVirtualBackgroundItem.fromJson(itemMap);
return vbItem;
}