IsEqualUtils class
Utility functions for comparing state values to determine whether a widget rebuild is necessary.
Used as default isEqual parameters in WithStore and related widgets.
Constructors
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alwaysEquals(
dynamic previous, dynamic current) → bool -
Always returns
true, disabling rebuild optimization. -
listAreEquals<
E, ID> (Iterable< E> previous, Iterable<E> current, ID toID(int index, E element)) → bool -
Compares two iterables element-by-element using
toIDto extract comparable identifiers. -
stateAreEquals(
dynamic previous, dynamic current) → bool -
Compares using
==. This is the default equality check for WithStore.