event library

Represents an Event as some number of handlers (subscribers) that can be notified when a condition occurs.

See also EventArgs.

Classes

Event<T extends EventArgs>
Represents an Event as some number of handlers (subscribers) that can be notified when a condition occurs, by using the broadcast method.
EventArgs
Represents data (arguments) that is provided to subscribers when an Event occurs. It includes two values:- whenOccurred - the date/time the Event is broadcast, and eventName - an optional name that can be used to identify the associated event.
Value<T>
An EventArgs derived class with one (generic) value.
Values<T1, T2>
An EventArgs derived class with two (generic) values.

Enums

Severity
Severity levels as a bitmask. Possible values are debug, info, warning, error.

Functions

log(String message, {String source = "Log", Severity level = Severity.info}) bool
Outputs the specified message to the IO destination previously set in showLog().
showLog(IOSink outputTo, int level) → void
Indicates that diagnostic log statements should be output. Typically, place this statement at the start of your program.