StateFlow class
Annotation to mark a field as a flow (reactive state)
The field type and default value are used to generate an AirStateKey. IMPORTANT: Named 'StateFlow' to avoid conflict with Flutter's Flow widget.
Example:
@StateFlow()
List<CartItem> items = [];
// Generates: AirStateKey<List<CartItem>>('module.items', defaultValue: [])
Properties
- description → String?
-
Description for documentation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Custom flow name (defaults to field name)
final
- persist → bool
-
Whether this flow should be persisted
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