Chuck constructor

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

Creates Chuck instance.

Implementation

Chuck({
  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>();
  _ChuckCore = ChuckCore(
    _navigatorKey,
    showNotification: showNotification,
    showInspectorOnShake: showInspectorOnShake,
    darkTheme: darkTheme,
    notificationIcon: notificationIcon,
    maxCallsCount: maxCallsCount,
    directionality: directionality,
  );
  _httpClientAdapter = ChuckHttpClientAdapter(_ChuckCore);
  _httpAdapter = ChuckHttpAdapter(_ChuckCore);
}