LogBreakpoints class
Log breakpoints for one app: matches each new log line, pauses the app on a hit, and queues hits for the agent.
Constructors
Properties
-
armed
→ List<
LogBreakpoint> -
no setter
-
capture
→ Future<
String?> Function() -
Screenshots the device; returns the PNG path or null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPending → bool
-
True while any hit is queued or still being paused for, so a waiter has something to wait on.
no setter
-
isolatePaused
→ Future<
bool> Function() -
Whether the app's isolate is really paused; false once it is running or gone (hot restart, resumed from an IDE).
final
- isPaused → bool
-
no setter
-
pauseApp
→ Future<
String?> Function() -
Pauses the app's isolates; returns an error message or null on success.
final
- pausedFor → BreakpointHit?
-
no setter
-
pending
→ List<
BreakpointHit> -
no setter
- ready → BreakpointHit?
-
The oldest settled hit (pause attempt and screenshot finished), without consuming it.
no setter
-
resumeApp
→ Future<
String?> Function() -
Resumes the app's isolates; returns an error message or null on success.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
RegExp pattern, {AppLogStream? stream, bool pause = true, bool once = false}) → LogBreakpoint -
dispose(
) → Future< void> - Resumes a paused app and drops everything; used when glint lets go of the app.
-
listen(
Stream< AppLogEntry> entries) → void -
Starts matching lines from
entries; replaces any earlier source. -
next(
Duration timeout) → Future< BreakpointHit?> -
Waits up to
timeoutfor a ready hit; null on timeout. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconcile(
) → Future< void> - Drops the pause record when the isolate is no longer paused; used after the runtime reconnects.
-
remove(
String? id) → bool -
Removes one breakpoint, or all when
idis null; true when something was removed. -
resume(
{bool force = false}) → Future< ({String? error, bool foreign, BreakpointHit? hit, bool refused})> -
Resumes the app if paused and consumes the current hit; a pause glint did not cause (a debugger, start-paused, an exception) is resumed only with
force, elserefusedis true. Returns the resume error, if any. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited