Alice constructor
Alice({
- bool showNotification = true,
- bool showInspectorOnShake = false,
- bool darkTheme = false,
- String notificationIcon = 'mipmap/ic_launcher',
- int maxCallsCount = 1000,
- TextDirection? directionality,
- String channelId = 'Alice',
- String channelName = 'alice_channel',
- String channelDescription = 'Notification For 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,
this.channelId = 'Alice',
this.channelName = 'alice_channel',
this.channelDescription = 'Notification For Alice'}) {
_navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>();
_aliceCore = AliceCore(_navigatorKey,
showNotification: showNotification,
darkTheme: darkTheme,
notificationIcon: notificationIcon,
maxCallsCount: maxCallsCount,
directionality: directionality,
channelId: channelId,
channelName: channelName,
channelDescription: channelDescription);
_httpClientAdapter = AliceHttpClientAdapter(_aliceCore);
}