Alice constructor

Alice({
  1. GlobalKey<NavigatorState>? navigatorKey,
  2. bool showNotification = true,
  3. bool showInspectorOnShake = false,
  4. String notificationIcon = '@mipmap/ic_launcher',
  5. int maxCallsCount = 1000,
  6. TextDirection? directionality,
  7. bool? showShareButton = true,
})

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);
}