switchCamera method

  1. @override
Future<void> switchCamera(
  1. TUICamera camera
)
override

Implementation

@override
Future<void> switchCamera(TUICamera camera) async {
  if (!kIsWeb && (Platform.isIOS || Platform.isAndroid)) {
    await methodChannel.invokeMethod("switchCamera", {'camera': camera.index});
  }
}