NoticeRegistry class

Allows registering one or more notices without knowing their parent yet. globalNoticeRegistry is a global instance of this class and is typically used to register package level notices allowing to defer their output behavior to the package user.

Disclaimer: Avoid using the registry where you can. It keeps references to receiving notices and prevents them from being garbage collected.

Constructors

NoticeRegistry()
Creates a new notice registry.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(NoticeReceiver notice) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRecord(NoticeRecord record) → void
Called when a notice is recorded.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited