WhenWhy class
An EventArgs derived class that includes the date/time the Event was broadcast, and an optional description.
Provides a whenOccurred and description fields.
// example declaration ...
var myEvent = Event<WhenWhy>();
// broadcast with an optional description ...
myEvent.broadcast(WhenWhy(description: 'something'))
// in subscriber handler ...
print(args.whenOccurred);
print(args.description);
Constructors
Properties
- description ↔ String
-
An optional description or other information.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- whenOccurred ↔ DateTime
-
The date and time the Event was broadcast.
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