NotifyStrategy enum
This enum controls the default behaviour of updateShouldNotify
.
Keep in mind that you can override updateShouldNotify
in your notifiers
to implement a custom behaviour.
Values
- identity → const NotifyStrategy
-
Notify and rebuild whenever we have a new instance. Use this to avoid comparing deeply nested objects.
- equality → const NotifyStrategy
-
Notify and rebuild whenever the state in terms of equality (==) changes. This may result in less rebuilds. This is used as default.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
NotifyStrategy> - A constant List of the values in this enum, in order of their declaration.