ChangeDetectionStrategy class
Describes within the change detector which strategy will be used the next time change detection is triggered.
! Changes to this class require updates to view_compiler/constants.dart.
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Constants
- CheckAlways → const int
-
@Deprecated('Not intended to be a public API. Use "Default"')
ChangeDetectionCheckedState.checkAlways
- Checked → const int
-
@Deprecated('Not intended to be a public API. Use "OnPush"')
ChangeDetectionCheckedState.waitingForMarkForCheck
- CheckOnce → const int
-
@Deprecated('Not intended to be a public API. Use "OnPush"')
ChangeDetectionCheckedState.checkOnce
- Default → const int
-
The default type of change detection, always checking for changes. [...]
0
- Detached → const int
-
@Deprecated('Not intended to be a public API. Use "ChangeDetectorRef.detach"')
ChangeDetectionCheckedState.waitingToBeAttached
- OnPush → const int
-
An optimized form of change detection, skipping some checks for changes. [...]
5
- Stateful → const int
-
@Deprecated('Not intended to be a public API. Extend/Mixin "ComponentState".')
6