Alice constructor
Alice({})
Creates alice instance.
Implementation
Alice({
GlobalKey<NavigatorState>? navigatorKey,
this.showNotification = true,
this.showInspectorOnShake = false,
this.darkTheme = false,
this.notificationIcon = 'mipmap/ic_launcher',
this.maxCallsCount = 1000,
this.directionality,
}) {
_navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>();
_aliceCore = AliceCore(
_navigatorKey,
showNotification: showNotification,
darkTheme: darkTheme,
notificationIcon: notificationIcon,
maxCallsCount: maxCallsCount,
directionality: directionality,
)..initializeAlice();
_httpClientAdapter = AliceHttpClientAdapter(_aliceCore);
}