Values<T1, T2> class

Represents an EventArgs derived class with two (generic) values.

For use as a quick alternative to defining your own custom EventArgs class. Provides value1 and value2 fields containing the values supplied on creation.

See also Value which supports 1 (generic) value.

// example
var e = Event<Values<String, int>>();
e.subscribe((args) => print('${args.value1} : ${args.value2}'));
e.broadcast(Values('boom', 37));
// outputs: boom : 37
Inheritance

Constructors

Values(T1 value1, T2 value2)
Creates an Values representing two generic values: value1 and value2

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value1 ↔ T1
A generic value.
getter/setter pair
value2 ↔ T2
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited