toggle method
void
toggle()
Implementation
void toggle() {
if (_isStreaming && _cameraController!.value.isStreamingImages) {
stop();
} else {
start();
}
}
void toggle() {
if (_isStreaming && _cameraController!.value.isStreamingImages) {
stop();
} else {
start();
}
}