ObservableState class final

Marks an owned state factory whose return type must be an ObservableObject.

This has the same lifecycle behavior and options as PlainState, while adding a generator-time check that the state itself is observable.

Inheritance

Constructors

ObservableState({String? name, bool autoDispose = true})
const

Properties

autoDispose bool
Whether generated lifecycle code calls an available zero-argument dispose() method on this state.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String?
The name injected into the generated build method.
finalinherited
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