setMessageForObject method
Sets the message 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 setMessageForObject(Object object, String? value) {
_messageStates[object.hashCode] = value;
notifyListeners();
}