API Reference 0.3.24dart_web_toolkit_eventDragHandlerAdapter

DragHandlerAdapter class

Handler interface for {@link DragEvent} events.

class DragHandlerAdapter extends EventHandlerAdapter implements DragHandler {

 DragHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > DragHandlerAdapter

Implements

DragHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onDrag(DragEvent event) #

Called when a {@link DragEvent} is fired.

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

void onDrag(DragEvent event) {
 callback(event);
}