Chuck constructor
Chuck({})
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);
}