GitsInspector class
Constructors
-
GitsInspector({bool showInspectorOnShake = true, bool showNotification = true, bool saveInspectorToLocal = true, String notificationIcon = '@mipmap/ic_launcher'})
-
Creates GitsInspector instance.
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
notificationIcon
→ String
-
Icon url for notification
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
saveInspectorToLocal
→ bool
-
Should save new request to local storage. if this false GitsInspector
cannot show notification and cannot open with shake device.
final
-
showInspectorOnShake
→ bool
-
Should inspector be opened on device shake (works only with physical
with sensors).
final
-
showNotification
→ bool
-
Should user be notified with notification if there's new request catched.
final
Methods
-
inspectorRequest(Inspector inspector)
→ Future<void>
-
Insert
Inspector
to local then show local notification for request http
-
inspectorResponse(String uuid, ResponseInspector response)
→ Future<void>
-
Insert
Inspector
to local then show local notification for response http
-
inspectorResponseTimeout(String uuid)
→ Future<void>
-
Insert
Inspector
to local then show local notification for timeout http
-
navigateToInspectorPage()
→ void
-
Opens Http calls inspector. This will navigate user to the new fullscreen
page where all listened http calls can be viewed.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose()
→ void
-
Close instance, after call onClose shake detector cannot be open GitsInspectorPage.
-
onSelectedNotification(NotificationResponse notificationResponse, {void otherSelectedNotification(NotificationResponse notificationResponse)?})
→ void
-
If the notification payload is 'gits_inspector', navigate to the inspector page, otherwise, call
the otherSelectedNotification function
-
setNavigatorState(NavigatorState navigatorState)
→ void
-
Set custom navigation state. This will help if there's route library.
-
showLocalNotification()
→ Future<void>
-
Show local notification
-
toString()
→ String
-
A string representation of this object.
inherited