switchCamera method

Future<bool> switchCamera()

Implementation

Future<bool> switchCamera() async {
  try {
    final bool result = await _channel.invokeMethod('switchCamera');
    print("switchCamera: $result");
    return result;
  } on PlatformException catch (e) {
    print("Error switchCamera: $e.message");
  }
  return false;
}