RepeatingCommandAdapter class
Adapter of RepeatingCommand calling function in execute method passed through constructor and return result.
class RepeatingCommandAdapter implements RepeatingCommand {
Function _function;
RepeatingCommandAdapter(this._function);
/**
* Returns true if the RepeatingCommand should be invoked again.
*/
bool execute() {
return _function() as bool;
}
}
Implements
Constructors
Methods
bool execute() #
Returns true if the RepeatingCommand should be invoked again.
bool execute() {
return _function() as bool;
}