GenericEventArgs2<T1, T2> class

Represents a StdEventArgs 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 GenericEventArgs1 which supports 1 (generic) value.

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

Constructors

GenericEventArgs2(T1 value1, T2 value2, {String description = ''})
Creates an EventArg2 with two generic values: value1 and value2

Properties

description String
An optional description or other information.
getter/setter pairinherited
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
whenOccurred DateTime
The date and time the Event was broadcast.
getter/setter pairinherited

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