Alice class
Constructors
- Alice({@Deprecated('This value is not used anymore. ' 'Theme.of(context).brightness is used instead') bool darkTheme = false, AliceCustomColors customColors = const AliceCustomColors()})
-
Creates alice instance.
Usage Example
factory
Properties
Methods
-
addHttpCall(
AliceHttpCall aliceHttpCall) → void - Handle generic http call. Can be used to any http client.
-
getDioInterceptor(
) → AliceDioInterceptor - Get Dio interceptor which should be applied to Dio instance.
- Get currently used navigation key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onHttpClientRequest(
HttpClientRequest request, {dynamic body}) → void - Handle request from HttpClient
-
onHttpClientResponse(
HttpClientResponse response, HttpClientRequest request, {dynamic body}) → void - Handle response from HttpClient
-
onHttpResponse(
Response response, {dynamic body}) → void - Handle both request and response from http package
- Set custom navigation key. This will help if there's route library.
-
showInspector(
) → void - Opens Http calls inspector. This will navigate user to the new fullscreen page where all listened http calls can be viewed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited