LateInitializationError class

Exception thrown when accessing an uninitialized late variable

Inheritance

Constructors

LateInitializationError(String message)

Properties

hasDirectiveContext bool
Whether message already names which module failed to load which target.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The error message.
finalinherited
originalException Object?
When this runtime error wraps a native exception thrown from a bridged adapter (method, static method, getter, setter, operator, constructor), the original exception object is preserved here. This lets a typed on NativeType / bare catch clause in interpreted code dispatch against the real exception type rather than this RuntimeError wrapper. (OPEN B.5 — U13/U24.)
finalinherited
originalStackTrace StackTrace?
The stack trace that accompanied originalException at the point the bridged adapter threw it.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackedStackTrace StackTrace?
Stack trace captured by ErrorReporter when tracking is enabled.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke() bool
Revokes this error from the ErrorReporter.
inherited
toString() String
A string representation of this object.
inherited

Operators

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