switchCamera method
Toggles between the front and rear cameras.
Implementation
Future<void> switchCamera() async {
final int? id = await _channel.invokeMethod('switchCamera');
if (id != null) {
textureId = id;
}
}
Toggles between the front and rear cameras.
Future<void> switchCamera() async {
final int? id = await _channel.invokeMethod('switchCamera');
if (id != null) {
textureId = id;
}
}