Unreachable class
Indicates unreachable code. This is useful any time that the compiler can’t determine that some code is unreachable. For example:
- Switch arms with guard conditions.
- Loops that dynamically terminate.
- Iterators that dynamically terminate. Unreachable is just a shorthand for Panic with a fixed, specific message.
Constructors
- Unreachable([String msg = "This code should be unreachable."])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- msg → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
no setterinherited
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