AliceCore class

Constructors

AliceCore(GlobalKey<NavigatorState> _navigatorKey, AliceCustomColors customColors)
Creates alice core instance

Properties

callsSubject → BehaviorSubject<List<AliceHttpCall>>
Rx subject which contains all intercepted http calls
final
customColors AliceCustomColors
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCall(AliceHttpCall call) → void
Add alice http call to calls subject
addError(AliceHttpError error, int requestId) → void
Add error to exisng 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.
inherited
removeCalls() → void
Remove all calls from calls subject
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