setEffect method
Implementation
Future<int> setEffect(dynamic instance, String path) async {
if (Platform.isAndroid) {
return await ($instance as BasicHelper).invoke<int>(
method: 'setEffect',
args: [instance, path],
addGlobalEngine: false,
);
} else if (Platform.isIOS) {
return await ($instance as BasicHelper).invoke<int>(
method: 'setEffect:path:',
args: [instance, path],
addGlobalEngine: false,
);
} else {
throw UnsupportedError('Unsupported platform');
}
}