CyclicInitializationError class Null safety
Error thrown when a lazily initialized variable cannot be initialized.
Cyclic dependencies are no longer detected at runtime in null safe code. Such code will fail in other ways instead, possibly with a StackOverflowError.
Will be removed when support for non-null-safe code is discontinued.
- Inheritance
- Annotations
-
- @Deprecated("Use Error instead")
Constructors
- CyclicInitializationError([String? variableName])
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
read-onlyinherited
- variableName → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited