PlatformChannelFlightEvent class
A MethodChannel or EventChannel call captured at the BinaryMessenger level. Binary payloads are base64-encoded and truncated to 16 KB so that large binary blobs (images, fonts) do not bloat the flight recording.
channelName – e.g. 'plugins.flutter.io/camera'.
direction – 'toNative' (Dart → platform) or 'fromNative'
(platform → Dart reply / EventChannel message).
methodName – Method name decoded from the standard MethodCodec, if
available; null for EventChannel streams.
encodedArgs – base64url-encoded, truncated binary payload. Consumers
should treat this as an opaque diagnostic blob.
isError – true when the platform replied with a PlatformException
or the EventChannel emitted an error event.
- Inheritance
-
- Object
- FlightEvent
- PlatformChannelFlightEvent
Constructors
- PlatformChannelFlightEvent({required int timestampMs, required String channelName, required String direction, String? methodName, String? encodedArgs, bool isError = false})
-
const
-
PlatformChannelFlightEvent.fromJson(Map<
String, dynamic> json) -
factory
Properties
- argumentsJson → String?
-
no setter
- channel → String
-
no setter
- channelName → String
-
final
- direction → String
-
final
- encodedArgs → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
final
- method → String?
-
no setter
- methodName → String?
-
final
- resultJson → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestampMs → int
-
Milliseconds elapsed since the flight session started.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited