Dart DocumentationpropertiesAddEvent

AddEvent class

A factory to create simple property added event.

class AddEvent extends PropertiesEvent {

 final String _key;
 final String _value;
 
 /**
  * Create a new property added event instance by name the [eventType] and the property's [key] and [value].
  */
 const AddEvent(this._key, this._value):super(Properties.ADD_PROPERTY_EVENTNAME);
 
 /**
  * Getter for the added [key].
  */
 String get key => _key;
 
 /**
  * Getter for the added [value].
  */
 String get value => _value;
}

Extends

PropertiesEvent > AddEvent

Constructors

const AddEvent(String _key, String _value) #

Create a new property added event instance by name the eventType and the property's key and value.

const AddEvent(this._key, this._value):super(Properties.ADD_PROPERTY_EVENTNAME);

Properties

final String key #

Getter for the added key.

String get key => _key;

final String type #

inherited from PropertiesEvent

Getter fro the eventType of this event.

String get type => _eventType;

final String value #

Getter for the added value.

String get value => _value;