GuestErrors class

Catches what the framework reports while an entry builds and paints, so that "it rendered" and "it rendered without exploding" stop being the same answer.

A demo that throws paints Flutter's red ErrorWidget and nothing else changes: the compile succeeded, the reload succeeded, the capture succeeded, and every check that asserts on those passes while the picture is an error. The generated entrypoint has printed FW-ERROR: to stdout for a while, which makes it visible to a human watching a terminal and to nothing else — the headless session reads stdout only to find the VM service URI.

This is the same information kept where it can be asked for.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Forgets everything, keeping the entry.
describe() → InspectErrors
install() → void
Installs the handler. Call once, before runApp.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerExtensions() → void
Registers the extension. Call once, before runApp.
report(FlutterErrorDetails details) → void
Records details without owning FlutterError.onError.
resetFor(String entryId) → void
Forgets the previous entry's errors.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → GuestErrors
final