API Reference 0.3.24dart_web_toolkit_schedulerRepeatingCommandAdapter

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

RepeatingCommand

Constructors

new RepeatingCommandAdapter(Function _function) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
RepeatingCommandAdapter(this._function);

Methods

bool execute() #

Returns true if the RepeatingCommand should be invoked again.

bool execute() {
 return _function() as bool;
}