AliceCore class

Constructors

AliceCore.new({required AliceConfiguration configuration})
Creates alice core instance

Properties

callsStream Stream<List<AliceHttpCall>>
Returns stream which returns list of HTTP calls
no setter
configuration AliceConfiguration
Returns current configuration
no setter
hashCode int
The hash code for this object.
no setterinherited
isInspectorOpened bool
Returns flag which determines whether inspector is opened
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCall(AliceHttpCall call) FutureOr<void>
Add alice http call to calls subject
addError(AliceHttpError error, int requestId) FutureOr<void>
Add error to existing alice http call
addLog(AliceLog log) → void
Adds new log to Alice logger.
addLogs(List<AliceLog> logs) → void
Adds list of logs to Alice logger
addResponse(AliceHttpResponse response, int requestId) FutureOr<void>
Add response to existing alice http call
dispose() → void
Dispose subjects and subscriptions
getCalls() List<AliceHttpCall>
Returns all stored HTTP calls.
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.
inherited
removeCalls() FutureOr<void>
Remove all calls from calls subject
saveCallsToFile(BuildContext context) Future<AliceExportResult>
Save all calls to file.
selectCall(int requestId) AliceHttpCall?
Selects call with given requestId. It may return null.
setNavigatorKey(GlobalKey<NavigatorState> navigatorKey) → void
Set custom navigation key. This will help if there's route library.
toString() String
A string representation of this object.
inherited

Operators

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