StateEffect class final

Deprecated compatibility wrapper for one-shot effects.

Pass the payload object directly to emitEffect(...) instead. Dust unwraps StateEffect before delivery so older code keeps working.

Annotations
  • @Deprecated('Pass the effect object directly to emitEffect(...). ' 'StateEffect is unwrapped for compatibility and will be removed.')

Constructors

StateEffect(Object value)
Creates an effect payload.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object
User-defined effect value.
final

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