RelayCommand<T> class abstract

A Command that executes synchronously.

Inheritance

Constructors

RelayCommand()

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]) → void
Executes this command.
inherited
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<T>(void execute(T)) RelayCommand<T>
Initializes a new instance of RelayCommand that needs a parameter T when executing.