Error class used to report Flutter-specific assertion failures and contract violations.
- Inheritance
- Object
- Error
- AssertionError
- FlutterError
Static Properties
- onError → FlutterExceptionHandler
-
Called whenever the Flutter framework catches an error.
read / write
Static Methods
-
defaultStackFilter(
Iterable<String> frames) → Iterable<String> -
Converts a stack to a string that is more readable by omitting stack frames that correspond to Dart internals.
-
dumpErrorToConsole(
FlutterErrorDetails details, { bool forceReport: false }) → void -
Prints the given exception details to the console.
-
reportError(
FlutterErrorDetails details) → void -
Calls onError with the given details, unless it is null.
-
resetErrorCount(
) → void -
Resets the count of errors used by dumpErrorToConsole to decide whether to show a complete error message or an abbreviated one.
Constructors
- FlutterError(String message)
-
Creates a FlutterError.
Properties
- message → String
-
The message associated with this error.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - stackTrace → StackTrace
-
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited