switchCamera method

Future<int?> switchCamera(
  1. bool isFrontCamera
)

Switch camera (supports only the Android and iOS platforms)

Parameters:

isFrontCamera: true: front camera; false: rear camera

Implementation

Future<int?> switchCamera(bool isFrontCamera) {
  return _channel.invokeMethod('switchCamera', {"isFrontCamera": isFrontCamera});
}