FlightRecorder class
The central coordinator managing active session recording, ring buffer, interceptors, and automated crash dump generation.
Properties
- config → FlightConfig
-
The active configuration.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRecording → bool
-
Whether flight recording is currently running.
no setter
-
Returns the NavigatorObserver to plug into MaterialApp or CupertinoApp.
no setter
-
onCrashDumped
→ Stream<
File> -
Stream emitting file handles when crash logs are dumped to disk.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBreadcrumb(
String name, {String category = 'custom', Map< String, dynamic> data = const {}}) → void - Adds a custom developer breadcrumb to the recording.
-
exportSession(
{String? filePath, bool compress = true}) → Future< File> - Exports the recorded session snapshot to a file or in-memory FlightSession.
-
getRecentEvents(
) → List< FlightEvent> - Returns an immutable snapshot list of all events currently in the buffer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordEvent(
FlightEvent event) → void - Manually records a custom flight event into the ring buffer.
-
snapshot(
) → FlightSession - Builds a FlightSession object directly in memory.
-
start(
{FlightConfig? config}) → void - Starts recording user interactions, network, lifecycle, and crashes.
-
stop(
) → void - Stops the current recording session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlightRecorder
-
no setter