ModelObserver<Model> class abstract

This will be given all errors, including those of type UserException. Return true to throw the error. False to swallow it. Note:

  • When isDistinct==true, it means the widget rebuilt because the model changed.
  • When isDistinct==false, it means the widget didn't rebuilt because the model hasn't changed.
  • When isDistinct==null, it means the widget rebuilds everytime, and the model is not relevant.
Implementers

Constructors

ModelObserver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe({required Model? modelPrevious, required Model? modelCurrent, bool? isDistinct, StoreConnectorInterface? storeConnector, int? reduceCount, int? dispatchCount}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited