changeEffect method

Future changeEffect(
  1. int p
)

Implementation

Future changeEffect(int p) async {
  int sendNative = p;
  if (_cameraDeepArState.supportedEffects.isNotEmpty) {
    Effects e = _cameraDeepArState.supportedEffects[p];
    sendNative = Effects.values.indexOf(e);
  }
  if (p > Effects.values.length - 1) p = 0;
  return channel.invokeMethod('changeEffect', <String, dynamic>{
    'effect': sendNative,
  });
}