stop static method
Implementation
static Future<bool> stop() async {
if (currentState == CameraState.STOPPED ||
currentState == CameraState.STOPPING) {
return true;
}
_orientationStream = null;
currentState = CameraState.STOPPING;
try {
await _channel.invokeMethod("stop");
} catch (e) {
return false;
}
currentState = CameraState.STOPPED;
return true;
}