updateStatus method

void updateStatus(
  1. CameraStatus? input
)

Updates the status field.

Implementation

void updateStatus(CameraStatus? input) {
	if (input == null) return;
	if (!okStatuses.contains(input)) {
		error = "You can't set that status";
		notifyListeners();
		return;
	} else {
		error = null;
	}
	status = input;
	notifyListeners();
}