Chuck constructor

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

Creates Chuck instance.

Implementation

Chuck({
  GlobalKey<NavigatorState>? navigatorKey,
  this.showNotification = true,
  this.showInspectorOnShake = false,
  this.notificationIcon = '@mipmap/ic_launcher',
  this.maxCallsCount = 1000,
}) {
  _navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>();
  _chuckCore = ChuckCore(
    _navigatorKey,
    maxCallsCount: maxCallsCount,
    showNotification: showNotification,
    notificationIcon: notificationIcon,
    showInspectorOnShake: showInspectorOnShake,
  );
  _httpClientAdapter = ChuckHttpClientAdapter(_chuckCore);
  _httpAdapter = ChuckHttpAdapter(_chuckCore);
}