initStreams method
void
initStreams()
Initialize event streams used to process camera images.
Implementation
void initStreams() async {
cameras = await availableCameras();
for (var i = 0; i < cameras.length; i++) {
if (cameras[i].lensDirection == widget.initialDirection &&
_cameraIndex == null) {
_cameraIndex = i;
}
}
startLiveFeed();
}