AliceCore class


AliceCore(GlobalKey<NavigatorState>? navigatorKey, {required bool showNotification, required bool darkTheme, String? notificationIcon, required int maxCallsCount, TextDirection? directionality, String channelId = 'Alice', String channelName = 'alice_channel', String channelDescription = 'Notification For Alice'})
Creates alice core instance


brightness Brightness
Get currently used brightness
no setter
callsSubject → BehaviorSubject<IList<AliceHttpCall>>
Rx subject which contains all intercepted http calls
channelDescription String
getter/setter pair
channelId String
getter/setter pair
channelName String
getter/setter pair
darkTheme bool
Should inspector use dark theme
directionality TextDirection?
Directionality of app. If null then directionality of context will be used.
hashCode int
The hash code for this object.
no setterinherited
maxCallsCount int
Max number of calls that are stored in memory. When count is reached, FIFO method queue will be used to remove elements.
getter/setter pair
notificationIcon String?
Icon url for notification
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showNotification bool
Should user be notified with notification if there's new request catched by Alice


addCall(AliceHttpCall call) → void
Add alice http call to calls subject
addError(AliceHttpError error, int requestId) → void
Add error to existing alice http call
addHttpCall(AliceHttpCall aliceHttpCall) → void
Add alice http call to calls subject
addResponse(AliceHttpResponse response, int requestId) → void
Add response to existing alice http call
dispose() → void
Dispose subjects and subscriptions
getContext() BuildContext?
Get context from navigator key. Used to open inspector route.
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.
removeCalls() → void
Remove all calls from calls subject
saveHttpRequests(BuildContext context) → void
Save all calls to file
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.