changeMask method

Future changeMask(
  1. int p
)

Implementation

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