API Reference 0.7.1rikulo_modelDataEvents

DataEvents class

A map of DataEvent listeners that View accepts.

class DataEvents {
 final StreamTarget<DataEvent> _owner;
 DataEvents._(this._owner);

 /** Identifies listeners for all kind of data event type.
  * Listeners added here will be invoked no matter what [DataEvent] is received.
  */
 Stream<DataEvent> get all => _allEvent.forTarget(_owner);
 /** Identifies the addition of one or more contiguous items to the model.
  *
  * The event is an instance of [ListDataEvent] or [TreeDataEvent], depending
  * on the model.
  */
 Stream<DataEvent> get add => _addEvent.forTarget(_owner);
 /** Identifies the removal of one or more contiguous items from the model.
  *
  * The event is an instance of [ListDataEvent] or [TreeDataEvent], depending
  * on the model.
  */
 Stream<DataEvent> get remove => _removeEvent.forTarget(_owner);
 /** Identifies the structure of the lists has changed.
  *
  * The event is an instance of [DataEvent].
  */
 Stream<DataEvent> get structure => _structureEvent.forTarget(_owner);
 /** Identifies the selection of the lists has changed.
  *
  * It is applicable only if the model supports [SelectionModel].
  * The event is an instance of [DataEvent].
  */
 Stream<DataEvent> get select => _selectEvent.forTarget(_owner);
 /** Identified the change of whether the model allows mutiple selection.
  *
  * It is applicable only if the model supports [SelectionModel].
  * The event is an instance of [DataEvent].
  */
 Stream<DataEvent> get multiple => _multipleEvent.forTarget(_owner);
 /** Identifies the list of disabled objects has changed.
  *
  * It is applicable only if the model supports [DisablesModel].
  * The event is an instance of [DataEvent].
  */
 Stream<DataEvent> get disable => _disableEvent.forTarget(_owner);
 /** Identifies the change of the open statuses.
  *
  * It is applicable only if the model supports [OpensModel].
  * The event is an instance of [DataEvent].
  */
 Stream<DataEvent> get open => _openEvent.forTarget(_owner);
}

Properties

final Stream<DataEvent> add #

Identifies the addition of one or more contiguous items to the model.

The event is an instance of ListDataEvent or TreeDataEvent, depending on the model.

Stream<DataEvent> get add => _addEvent.forTarget(_owner);

final Stream<DataEvent> all #

Identifies listeners for all kind of data event type. Listeners added here will be invoked no matter what DataEvent is received.

Stream<DataEvent> get all => _allEvent.forTarget(_owner);

final Stream<DataEvent> disable #

Identifies the list of disabled objects has changed.

It is applicable only if the model supports DisablesModel. The event is an instance of DataEvent.

Stream<DataEvent> get disable => _disableEvent.forTarget(_owner);

final Stream<DataEvent> multiple #

Identified the change of whether the model allows mutiple selection.

It is applicable only if the model supports SelectionModel. The event is an instance of DataEvent.

Stream<DataEvent> get multiple => _multipleEvent.forTarget(_owner);

final Stream<DataEvent> open #

Identifies the change of the open statuses.

It is applicable only if the model supports OpensModel. The event is an instance of DataEvent.

Stream<DataEvent> get open => _openEvent.forTarget(_owner);

final Stream<DataEvent> remove #

Identifies the removal of one or more contiguous items from the model.

The event is an instance of ListDataEvent or TreeDataEvent, depending on the model.

Stream<DataEvent> get remove => _removeEvent.forTarget(_owner);

final Stream<DataEvent> select #

Identifies the selection of the lists has changed.

It is applicable only if the model supports SelectionModel. The event is an instance of DataEvent.

Stream<DataEvent> get select => _selectEvent.forTarget(_owner);

final Stream<DataEvent> structure #

Identifies the structure of the lists has changed.

The event is an instance of DataEvent.

Stream<DataEvent> get structure => _structureEvent.forTarget(_owner);