ReactiveWritePolicy enum Null safety

Defines the behavior for observables mutated outside actions

observed: If there are observers for the mutated observable, then throw. Else allow mutation outside an action. always: Always throw if an observable is mutated outside an action never: Allow mutating observables outside actions

Implemented types

Constants

always → const ReactiveWritePolicy
const ReactiveWritePolicy(1)
never → const ReactiveWritePolicy
const ReactiveWritePolicy(2)
observed → const ReactiveWritePolicy
const ReactiveWritePolicy(0)
values → const List<ReactiveWritePolicy>

A constant List of the values in this enum, in order of their declaration.

const List<ReactiveWritePolicy>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
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
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited