API Reference 0.3.24dart_web_toolkit_eventAttachEventHandlerAdapter

AttachEventHandlerAdapter class

Handler interface for {@link AttachEvent} events.

class AttachEventHandlerAdapter extends EventHandlerAdapter implements AttachEventHandler {

 AttachEventHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when {@link AttachEvent} is fired.
  *
  * @param event the {@link AttachEvent} that was fired
  */
 void onAttachOrDetach(AttachEvent event) {
   callback(event);
 }
}

Extends

EventHandlerAdapter > AttachEventHandlerAdapter

Implements

AttachEventHandler

Constructors

new AttachEventHandlerAdapter(EventHandlerAdapterCallback callback) #

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
AttachEventHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onAttachOrDetach(AttachEvent event) #

Called when {@link AttachEvent} is fired.

@param event the {@link AttachEvent} that was fired

void onAttachOrDetach(AttachEvent event) {
 callback(event);
}