updateState method

void updateState(
  1. ScienceState input
)

Updates the state and refreshes the UI.

Implementation

void updateState(ScienceState input) {
	state = input;
	notifyListeners();
}