setBusyForObject method Null safety

void setBusyForObject(
  1. Object? object,
  2. bool value
)

Sets the busy state for the object equal to the value passed in and notifies Listeners If you're using a primitive type the value SHOULD NOT BE CHANGED, since Hashcode uses == value

Implementation

void setBusyForObject(Object? object, bool value) {
  _busyStates[object.hashCode] = value;
  notifyListeners();
}