Computed class

Annotation to mark a computed state

Generates a ComputedState that depends on other flows.

Example:

@Computed(['cart.items', 'cart.discount'])
double get total => _computeTotal();

Constructors

Computed(List<String> dependencies)
const

Properties

dependencies List<String>
State keys this computed depends on
final
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