InspectError class
One framework error, as the guest saw it.
Constructors
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.exceptionAsStringrenders 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
stackthat are not the framework's, as frames holds them.