AsyncTwoWayCommand<TIn, TOut> class abstract

A Command that executes asynchronously and returns a value TOut.

Inheritance

Constructors

AsyncTwoWayCommand()

Properties

canExecute ValueNotifier<bool>
Determines whether execution is allowed.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isExecuting ValueNotifier<bool>
Determines whether the asynchronous execution is finished or not.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call([covariant TIn? parameter]) Future<TOut?>
Executes this command.
override
execute([covariant TIn? parameter]) Future<TOut?>
Internally executes this command.
override
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

Static Methods

withoutParam<TOut>(Future<TOut> execute()) AsyncTwoWayCommand<void, TOut>
Initializes a new instance of AsyncTwoWayCommand that does not need any parameter when executing.
override
withParam<TIn, TOut>(Future<TOut> execute(TIn)) AsyncTwoWayCommand<TIn, TOut>
Initializes a new instance of AsyncTwoWayCommand that needs a parameter TIn when executing.
override