API Reference 0.7.1rikulo_modelListDataEvent<T>

ListDataEvent<T> class

An event used to notify the listeners of a list model (ListModel) that the model has been changed.

class ListDataEvent<T> extends DataEvent {
 /** Constructor.
  *
  * + [type]: `change`, `add` or `remove`.
  */
 ListDataEvent(ListModel<T> model, String type, [this.start, this.end])
 : super(model, type);

 /** The starting index of the change range (nonnegative).
  * It is null, if not applicable.
  */
 final int start;
 /** The ending index of the change range (excluded).
  * It is null, if not applicable.
  */
 final int end;
}

Extends

DataEvent > ListDataEvent<T>

Constructors

new ListDataEvent(ListModel<T> model, String type, [int start, int end]) #

Constructor.

  • type: change, add or remove.
ListDataEvent(ListModel<T> model, String type, [this.start, this.end])
: super(model, type);

Properties

final int end #

The ending index of the change range (excluded). It is null, if not applicable.

final int end

final DataModel model #

inherited from DataEvent

Returns the data model of this event.

DataModel get model => _model;

final int start #

The starting index of the change range (nonnegative). It is null, if not applicable.

final int start

final String type #

inherited from DataEvent

Returns the type of this event.

String get type => _type;

Methods

String toString() #

inherited from DataEvent

Returns a string representation of this object.

docs inherited from Object
String toString() => "$type()";