FallThroughError class
Error previously thrown when control reaches the end of a switch case.
The pre-2.0 Dart specification required this error to be thrown when control reached the end of a switch case (except the last case of a switch) without meeting a break or other control flow operators. That kind of fall-through was made a compile-time error Dart 2.0, so this error is no longer thrown.
- Inheritance
- Annotations
-
- @Deprecated("No longer relevant in Dart 2.0")
Constructors
- FallThroughError()
Properties
- hashCode → int read-onlyinherited
- The hash code for this object.
- runtimeType → Type read-onlyinherited
- A representation of the runtime type of the object.
- stackTrace → StackTrace? read-onlyinherited
- The stack trace at the point where this error was first thrown.
Methods
- noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed.
- toString(
) → String override - A string representation of this object.
Operators
- operator ==(
Object other) → bool inherited - The equality operator.
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/FallThroughError-class.html