MethodChannelController class
A controller class to bridge Dart and native Android using MethodChannel. This handles communication between Flutter and the Stetho-related logic implemented on the Android native side.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
) → Future - Initializes Stetho on the native side.
-
interpretResponseStream(
String id) → Future - Instructs native side to interpret a response stream for a given ID.
-
onDataReceived(
Map< String, Object> map) → Future - Passes a data chunk from Dart to the native stream (used for streamed responses).
-
onDone(
String id) → Future - Notifies native that all data for a stream has been sent.
-
requestWillBeSent(
StethoInspectorRequest request) → Future - Notifies native side that a network request is about to be sent. Converts StethoInspectorRequest to a map before sending.
-
responseHeadersReceived(
StethoInspectorResponse response) → Future - Notifies native side that response headers were received. Sends a StethoInspectorResponse object.
-
responseReadFailed(
List< String> idError) → Future -
Signals that an error occurred while reading a response stream.
Expects a list with
requestId, errorMessage
. -
responseReadFinished(
String id) → Future - Signals that a response stream was read successfully for a given request ID.