API Reference 0.3.24dart_web_toolkit_uiMaybeDetachExceptionCommand

MaybeDetachExceptionCommand class

class MaybeDetachExceptionCommand implements AttachCommand {

 /**
  * The singleton command used to detach widgets.
  */
 void execute(Widget w) {
   if (w.isAttached()) {
     w.onDetach();
   }
 }
}

Implements

AttachCommand

Methods

void execute(Widget w) #

The singleton command used to detach widgets.

void execute(Widget w) {
 if (w.isAttached()) {
   w.onDetach();
 }
}