API Reference 0.7.1rikulo_modelDataEvent

DataEvent class

A data event.

class DataEvent {
 final DataModel _model;
 final String _type;

 DataEvent(DataModel model, String type): _model = model, _type = type;

 /** Returns the type of this event.
  */
 String get type => _type;
 /** Returns the data model of this event.
  */
 DataModel get model => _model;
 String toString() => "$type()";
}

Subclasses

ListDataEvent<T>, TreeDataEvent<T>

Constructors

new DataEvent(DataModel model, String type) #

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
DataEvent(DataModel model, String type): _model = model, _type = type;

Properties

final DataModel model #

Returns the data model of this event.

DataModel get model => _model;

final String type #

Returns the type of this event.

String get type => _type;

Methods

String toString() #

Returns a string representation of this object.

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