WatchOptions class

Options for configuring watch behavior.

Constructors

WatchOptions({FlushMode flush = FlushMode.pre, bool immediate = false, bool deep = false, bool once = false})
Creates watch options with the specified configuration.
const

Properties

deep → bool
If true, deep watch nested properties.
final
flush → FlushMode
When to flush the effect.
final
hashCode → int
The hash code for this object.
no setterinherited
immediate → bool
If true, run the callback immediately on creation.
final
once → bool
If true, stop the watcher after first callback run.
final
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

defaults → const WatchOptions
Default options: pre flush, not immediate, not deep, not once.