Action<T> class

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

It is reactive.

Usage:

  SomeWidget(
    onTap: someAction.accept,
  )

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

Constructors

Action([void onChanged(T? data)?])

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<T?>
Acceptance of a new event
override
call([T? data]) Future<T?>
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