StreamedAction<T> class

It's wrapper over an action on screen. It may be a text changes, focus changes and so on.

It is reactive.

Usage:

  SomeWidget(
    onValueChanged: someAction,
  )

  someAction.action.listen(doSomething);
Implemented types
Implementers

Constructors

StreamedAction({@Deprecated('Use subscription on stream instead. And handle changes in listener. Will be removed in next major version') void onChanged(T data)?, bool acceptUnique = false})
acceptUnique - data will be accepted only if it's unique

Properties

hashCode int
The hash code for this object.
no setterinherited
onChanged → (void Function(T data)?)
Callback for handling a new action
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<T>
The stream to which the event is transmitted
no setteroverride
value → T?
no setter

Methods

accept(T data) Future<void>
Acceptance of a new event
override
call(T data) Future<void>
Call action
dispose() Future<void>
Close stream
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