FlutterErrorFeed class
The distinct errors an app reports, read without any app code: Flutter's structured error events when flutter run enabled them, else the error dumps in the app's console output.
Constructors
- FlutterErrorFeed({int capacity = 50, String? projectDir()?, String? packageName()?})
Properties
-
all
→ List<
FlutterErrorEntry> -
no setter
- capacity → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastSeq → int
-
Seq of the latest occurrence of any error; 0 before the first.
no setter
-
onNewError
→ Stream<
FlutterErrorEntry> -
Fires once per app run for each error (by summary and location), and again when one recurs after startRun.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAgentEvent(
Map< String, Object?> ? data) → void -
Reads one
glint.errorevent the in-app agent posts from the app's ownFlutterError.onErrorandPlatformDispatcher.onErrorchain. -
addStructured(
Map< String, Object?> ? data) → void -
Reads one
Flutter.Errorextension event. -
dispose(
) → void -
flush(
) → void - Finishes a dump or exception still being read, whatever its age.
-
listen(
Stream< AppLogEntry> entries) → void -
Reads the app's console output from
entries, stdout and stderr only. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
since(
int seq) → List< FlutterErrorEntry> -
Errors with an occurrence after
seq, oldest first; a dump still being written counts once it has been silent for staleAfter. -
startRun(
) → void - Marks a hot restart: an error seen before it alerts again when it recurs.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- staleAfter → const Duration
- How long console output may stay silent before an unfinished dump or exception counts as complete.
- summaryLimit → const int