setSessionPreset method

Future<void> setSessionPreset(
  1. dynamic cameraSessionPreset
)

set the the session preset

Implementation

Future<void> setSessionPreset(cameraSessionPreset) async {
  // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
  if (Platform.isAndroid) return;

  String? sessionPreset;

  await channel.invokeMethod('setSessionPreset', <String, dynamic>{
    'sessionPreset': sessionPreset,
  });

  //  _myCameraState.setState(() {});
}