ApiRegistryConfig constructor
ApiRegistryConfig({
- required String baseUrl,
- String? statusCodeKey,
- List statusValues = const [],
- String? errorMessageKey,
- dynamic failureParser()?,
- dynamic unauthorizedFn(
- BuildContext context
- Client? client,
- bool showErrorToast = true,
- bool showLoadingWidget = true,
- Widget loadingWidget = const CircularProgressIndicator(),
Implementation
ApiRegistryConfig(
{
// required this.apiRegistries,
required this.baseUrl,
this.statusCodeKey,
this.statusValues = const [],
this.errorMessageKey,
this.failureParser,
this.unauthorizedFn,
this.client,
this.showErrorToast = true,
this.showLoadingWidget = true,
this.loadingWidget = const CircularProgressIndicator()});