TwoWayCommand<TIn, TOut> class abstract

A Command that executes synchronously and returns a value TOut.

Inheritance

Constructors

TwoWayCommand()

Properties

canExecute ValueNotifier<bool>
Determines whether execution is allowed.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call([Object? parameter]) → TOut?
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>(TOut execute()) TwoWayCommand<void, TOut>
Initializes a new instance of TwoWayCommand that does not need any parameter when executing.
withParam<TIn, TOut>(TOut execute(TIn)) TwoWayCommand<TIn, TOut>
Initializes a new instance of TwoWayCommand that needs a parameter TIn when executing.