API Reference 0.3.24dart_web_toolkit_schedulerScheduledCommandAdapter

ScheduledCommandAdapter class

Adapter of ScheduledCommand calling function in execute method passed through constructor.

class ScheduledCommandAdapter implements ScheduledCommand {
 
 Function _function;
 
 ScheduledCommandAdapter(this._function);
 
 /**
  * Invokes the command.
  */
 void execute() {
   _function();
 }
}

Implements

ScheduledCommand

Constructors

new ScheduledCommandAdapter(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
ScheduledCommandAdapter(this._function);

Methods

void execute() #

Invokes the command.

void execute() {
 _function();
}