RelayCommand<TIn> class abstract

A Command that executes synchronously.

Implemented types
Implementers

Constructors

RelayCommand()

Properties

canExecute ValueNotifier<bool>
Determines whether execution is allowed.
final
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]) → void
Executes this command.
override
execute([Object? parameter]) → void
Internally executes this command.
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(void execute()) RelayCommand<void>
Initializes a new instance of RelayCommand that does not need any parameter when executing.
withParam<TIn>(void execute(TIn)) RelayCommand<TIn>
Initializes a new instance of RelayCommand that needs a parameter TIn when executing.