Event class

Generic Event type used to notify an observer.

Constructors

Event({required String type, required String data})

Properties

data String
Generic container for an event's data (Object). By default, event data will contain begin key, whose value is a number representing timestamp taken at the time of an event creation, in microseconds, since the epoch. For an interval events, an optional end property will be present that represents timestamp taken at the time of an event completion. Additional data properties are docummented by respective events.
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
type String
Type of the event.
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