NetLensConfiguration class

Constructors

NetLensConfiguration({bool showNotification = true, bool showInspectorOnShake = true, String notificationIcon = '@mipmap/ic_launcher', TextDirection? directionality, bool showShareButton = true, GlobalKey<NavigatorState>? navigatorKey, NetLensStorage? storage, NetLensLogger? logger, NetLensRedaction redaction = const NetLensRedaction(), NetLensMocks? mocks})

Properties

directionality → TextDirection?
Directionality of app. Directionality of the app will be used if set to null. Default value is null.
final
hashCode → int
The hash code for this object.
no setterinherited
mocks → NetLensMocks
Records calls as mock endpoints and replays them. Mocks are off by default. See NetLensMocks.
final
Navigator key used to open inspector. Default value is null.
final
netLensLogger → NetLensLogger
Logger instance.
final
netLensStorage → NetLensStorage
Storage where calls will be saved. The default storage is memory storage.
final
notificationIcon → String
Icon url for notification. Default value is '@mipmap/ic_launcher'.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
redaction → NetLensRedaction
Sensitive values which are masked in shared and exported calls, and hidden in the inspector until revealed. Default value masks common credential headers, body fields and query parameters. Use NetLensRedaction.none to turn it off.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showInspectorOnShake → bool
Should inspector be opened on device shake (works only with physical with sensors). Default value is true.
final
showNotification → bool
Should user be notified with notification when there's new request caught by NetLens. Default value is true.
final
showShareButton → bool
Flag used to show/hide share button
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({GlobalKey<NavigatorState>? navigatorKey, bool? showNotification, bool? showInspectorOnShake, String? notificationIcon, TextDirection? directionality, bool? showShareButton, NetLensStorage? netLensStorage, NetLensLogger? netLensLogger, NetLensRedaction? redaction, NetLensMocks? mocks}) → NetLensConfiguration
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