API Reference 0.3.24dart_web_toolkit_eventErrorHandlerAdapter

ErrorHandlerAdapter class

Handler interface for {@link ErrorEvent} events.

class ErrorHandlerAdapter extends EventHandlerAdapter implements ErrorHandler {

 ErrorHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > ErrorHandlerAdapter

Implements

ErrorHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onError(ErrorEvent event) #

Called when ErrorEvent is fired.

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

void onError(ErrorEvent event) {
 callback(event);
}