API Reference 0.7.1rikulo_eventScrollEvent

ScrollEvent class

Event representing scrolling.

class ScrollEvent extends ViewEvent {
 
 final ScrollerState state;
 
 /** Constructor
  * 
  */
 ScrollEvent(String type, View target, this.state) : 
   super(type, target);
}

Extends

ViewEvent > ScrollEvent

Constructors

new ScrollEvent(String type, View target, ScrollerState state) #

Constructor

ScrollEvent(String type, View target, this.state) : 
 super(type, target);

Properties

View currentTarget #

inherited from ViewEvent

The view that is handling this event currently.

View currentTarget

final bool isPropagationStopped #

inherited from ViewEvent

Returns whether this event's propagation is stopped.

Default: false.

It becomes true if stopPropagation is called, and then all remaining event listeners are ignored.

bool get isPropagationStopped => _propStop;

final ScrollerState state #

final ScrollerState state

View target #

inherited from ViewEvent

Returns the view that this event is targeting to.

View target

final int timeStamp #

inherited from ViewEvent

Returns the time stamp.

int get timeStamp => _stamp;

final String type #

inherited from ViewEvent

Returns the event's type.

String get type => _type;

Methods

void preventDefault() #

inherited from ViewEvent

Prevents the browser's default behavior.

void preventDefault() {
}

void stopPropagation() #

inherited from ViewEvent

Stops the propagation. Once called, all remaining event listeners, if any, are ignored.

void stopPropagation() {
 _propStop = true;
}

String toString() #

inherited from ViewEvent

Returns a string representation of this object.

docs inherited from Object
@override
String toString() => "ViewEvent($target,$type)";