StorageChange class
class StorageChange extends ChromeObject {
StorageChange({var oldValue, var newValue}) {
if (oldValue != null) this.oldValue = oldValue;
if (newValue != null) this.newValue = newValue;
}
StorageChange.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* The old value of the item, if there was an old value.
*/
dynamic get oldValue => jsProxy['oldValue'];
set oldValue(var value) => jsProxy['oldValue'] = jsify(value);
/**
* The new value of the item, if there is a new value.
*/
dynamic get newValue => jsProxy['newValue'];
set newValue(var value) => jsProxy['newValue'] = jsify(value);
}
Extends
ChromeObject > StorageChange
Constructors
new StorageChange({oldValue, newValue}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
StorageChange({var oldValue, var newValue}) {
if (oldValue != null) this.oldValue = oldValue;
if (newValue != null) this.newValue = newValue;
}
new StorageChange.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
StorageChange.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
var newValue #
The new value of the item, if there is a new value.
dynamic get newValue => jsProxy['newValue'];
set newValue(var value) => jsProxy['newValue'] = jsify(value);
var oldValue #
The old value of the item, if there was an old value.
dynamic get oldValue => jsProxy['oldValue'];
set oldValue(var value) => jsProxy['oldValue'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();