InspectError class

One framework error, as the guest saw it.

Constructors

InspectError({required String exception, String? library, String? context, int count = 1, bool network = false, List<String> frames = const []})
const
InspectError.fromJson(Map<String, Object?> json)
factory

Properties

context → String?
What the framework was doing: during layout, while painting.
final
count → int
How many times this exact error was reported.
final
exception → String
The message, as FlutterErrorDetails.exceptionAsString renders it.
final
frames → List<String>
Where it was thrown: the frames of its stack outside the framework, nearest first, each uri:line:column. See framesOf.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
The key two errors are the same under: the message and where it came from. Deliberately not the context — the same overflow reported during layout and during paint is one bug.
no setter
library → String?
Which part of the framework reported it — widgets library, rendering library. This is what tells a layout overflow from a failed image load without parsing the message.
final
network → bool
True when the exception is a failed network fetch — a NetworkImageLoadException, typed rather than parsed out of the message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

framesOf(StackTrace? stack) → List<String>
The frames of stack that are not the framework's, as frames holds them.

Constants

maxFrames → const int
The most of a stack framesOf keeps. Nearest first, so what is dropped is the harness and the zone machinery an entry was run under.