AliceCore constructor

AliceCore(
  1. GlobalKey<NavigatorState>? navigatorKey, {
  2. required bool showNotification,
  3. required bool darkTheme,
  4. String? notificationIcon,
  5. required int maxCallsCount,
  6. TextDirection? directionality,
  7. String channelId = 'Alice',
  8. String channelName = 'alice_channel',
  9. String channelDescription = 'Notification For Alice',
})

Creates alice core instance

Implementation

AliceCore(this.navigatorKey,
    {required this.showNotification,
    required this.darkTheme,
    this.notificationIcon,
    required this.maxCallsCount,
    this.directionality,
    this.channelId = 'Alice',
    this.channelName = 'alice_channel',
    this.channelDescription = 'Notification For Alice'}) {
  if (showNotification) {
    debugPrint('SHOW NOTIFICATIONS');
    _initializeAlice(
      channelDescription: channelDescription,
      channelId: channelId,
      channelName: channelName,
    );
    _callsSubscription = callsSubject.listen((_) => _onCallsChanged());
  }
  _brightness = darkTheme ? Brightness.dark : Brightness.light;
}