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

ChangeDetectionStrategy()

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

toPrettyString(int strategy) String

Constants

CheckAlways → const int
Checked → const int
CheckOnce → const int
Default → const int
The default type of change detection, always checking for changes.
Detached → const int
OnPush → const int
An optimized form of change detection, skipping some checks for changes.