switchCamera method
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});
}