API Reference 0.7.1rikulo_modelTreeDataEvent<T>

TreeDataEvent<T> class

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

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

 /** Returns the first affected node.
  */
 final T node;

 String toString() => "$type($node)";
}

Extends

DataEvent > TreeDataEvent<T>

Constructors

new TreeDataEvent(TreeModel<T> model, String type, T node) #

Constructor.

  • type: change, add or remove.
TreeDataEvent(TreeModel<T> model, String type, T this.node): super(model, type);

Properties

final DataModel model #

inherited from DataEvent

Returns the data model of this event.

DataModel get model => _model;

final T node #

Returns the first affected node.

final T node

final String type #

inherited from DataEvent

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($node)";