setState method

  1. @visibleForTesting
void setState(
  1. ClassificationState state
)

Updates the current state of the view model.

This method is visible for testing purposes only.

Parameters:

  • state: The new state to set

Implementation

@visibleForTesting
void setState(ClassificationState state) {
  _state = state;
  notifyListeners();
}