Infospect class
Infospect
is a utility class designed to facilitate monitoring and debugging activities,
such as logging network calls, navigating within the app, managing multi-window actions,
and handling application logs.
Properties
- brightness → Brightness
-
no setter
- context → BuildContext?
-
no setter
- dioInterceptor → InfospectDioInterceptor
-
interceptors
no setter
-
get the navigator key
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- infospectLogger → InfospectLogger
-
final
-
isInfospectOpened
↔ ValueNotifier<
bool> -
getter/setter pair
- maxCallsCount → int
-
parameters
final
-
networkCallsSubject
→ BehaviorSubject<
List< InfospectNetworkCall> > -
final
-
final
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCall(
InfospectNetworkCall call) → void - Network calls
-
addError(
InfospectNetworkError error, int requestId) → void -
addHttpCall(
InfospectNetworkCall httpCall) → void -
addLog(
InfospectLog log) → void -
Logs an instance of
InfospectLog
. -
addLogs(
List< InfospectLog> logs) → void -
addResponse(
InfospectNetworkResponse response, int requestId) → void -
clearAllLogs(
) → void -
clearAllNetworkCalls(
) → void -
dispose(
) → void - Dispose subjects and subscriptions
-
handleMainWindowReceiveData(
) → void -
handleMultiWindowReceivedData(
BuildContext context) → void -
httpClientInterceptor(
{required Client client}) → InfospectHttpClientInterceptor -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openInspectorInNewWindow(
) → Future< void> - Navigates to the interceptor.
-
run(
List< String> args, {required Widget myApp}) → void - run app
-
sendLogs(
[List< InfospectLog> ? logs]) → void -
sendNetworkCalls(
) → void - multi window
-
sendThemeMode(
{required bool isDarkTheme}) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkInstance(
Infospect? instance) → dynamic -
Checks if the
Infospect
instance is initialized and throws an error -
ensureInitialized(
{int maxCallsCount = 1000, bool logAppLaunch = false, }) → Infospect -
Ensures the
Infospect
instance is initialized. If it's not initialized, it will initialize it with the provided arguments.