API Reference 0.3.24dart_web_toolkit_eventScrollHandlerAdapter

ScrollHandlerAdapter class

Handler interface for {@link ScrollEvent} events.

class ScrollHandlerAdapter extends EventHandlerAdapter implements ScrollHandler {

 ScrollHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > ScrollHandlerAdapter

Implements

ScrollHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onScroll(ScrollEvent event) #

Called when ScrollEvent is fired.

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

void onScroll(ScrollEvent event) {
 callback(event);
}