RuntimeEvent class final

An event that a runtime or one of its maps raised.

See mln_runtime_event in the C API reference.

Constructors

RuntimeEvent({required RuntimeEventType type, RuntimeEventSourceType sourceType = const RuntimeEventSourceType.fromRawValue(0), int source = 0, int generation = 0, String message = '', required RuntimeEventPayload payload})
const

Properties

generation → int
For a map event, a map snapshot with this generation or a later one includes what the event reports. Zero for a runtime event.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
The error's text for an event that reports a failure, or empty.
final
payload → RuntimeEventPayload
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → int
The runtime or map that raised the event, as source_type says.
final
sourceType → RuntimeEventSourceType
final
type → RuntimeEventType
final

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