Dart DocumentationpropertiesUpdateEvent

UpdateEvent class

A factory to create simple property added event.

class UpdateEvent extends PropertiesEvent {

 final String _key;
 final String _oldvalue;
 final String _newvalue;
 
 /**
  * Create a new property updated event instance by name the [eventType] and the property's [key] and [value].
  */
 const UpdateEvent(this._key, this._newvalue, this._oldvalue):super(Properties.UPDATE_PROPERTY_EVENTNAME);
 
 /**
  * Getter for the updated [key].
  */
 String get key => _key;
 
 /**
  * Getter for the updated [oldValue].
  */
 String get oldValue => _oldvalue;
 
 /**
  * Getter for the updated [newValue].
  */
 String get newValue => _newvalue;
}

Extends

PropertiesEvent > UpdateEvent

Constructors

const UpdateEvent(String _key, String _newvalue, String _oldvalue) #

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

const UpdateEvent(this._key, this._newvalue, this._oldvalue):super(Properties.UPDATE_PROPERTY_EVENTNAME);

Properties

final String key #

Getter for the updated key.

String get key => _key;

final String newValue #

Getter for the updated newValue.

String get newValue => _newvalue;

final String oldValue #

Getter for the updated oldValue.

String get oldValue => _oldvalue;

final String type #

inherited from PropertiesEvent

Getter fro the eventType of this event.

String get type => _eventType;