StdEventArgs class
An ExtendedEventArgs extended class that includes the date and time the ExtendedEvent was broadcast and an optional description.
Provides a whenOccurred and description fields.
// example declaration ...
var myEvent = Event<StdEventArgs>();
// broadcast with an optional description ...
myEvent.broadcast(StdEventArgs(description: 'something'))
// in subscriber handler ...
print(args.whenOccurred);
print(args.description);
- Inheritance
-
- Object
- ExtendedEventArgs
- StdEventArgs
- Implementers
Constructors
- StdEventArgs({required String description})
- Creates a new StdEventArgs, with an optional description.
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