switchCamera method
Switch between front and back camera. Returns true if now using front camera.
Implementation
Future<bool> switchCamera() async {
final result = await _methodChannel.invokeMethod<bool>('switchCamera');
return result ?? false;
}