Alice constructor
Alice({
- bool showNotification = true,
- bool showInspectorOnShake = false,
- String notificationIcon = '@mipmap/ic_launcher',
- int maxCallsCount = 1000,
- TextDirection? directionality,
Creates alice instance.
Implementation
Alice({
GlobalKey<NavigatorState>? navigatorKey,
this.showNotification = true,
this.showInspectorOnShake = false,
this.notificationIcon = '@mipmap/ic_launcher',
this.maxCallsCount = 1000,
this.directionality,
this.showShareButton = true,
}) {
_navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>();
_aliceCore = AliceCore(
_navigatorKey,
showNotification: showNotification,
showInspectorOnShake: showInspectorOnShake,
notificationIcon: notificationIcon,
maxCallsCount: maxCallsCount,
directionality: directionality,
showShareButton: showShareButton,
);
_httpClientAdapter = AliceHttpClientAdapter(_aliceCore);
_httpAdapter = AliceHttpAdapter(_aliceCore);
}