Interceptor constructor

Interceptor({
  1. SaveResponseUseCase? saveResponseUseCase,
  2. SaveRequestUseCase? saveRequestUseCase,
  3. SaveErrorUseCase? saveErrorUseCase,
  4. bool kIsDebug = false,
  5. bool showFloating = true,
  6. GlobalKey<NavigatorState>? navigatorKey,
  7. Duration? duration,
  8. void navigateToDetail()?,
})

Implementation

Interceptor({
  this.saveResponseUseCase,
  this.saveRequestUseCase,
  this.saveErrorUseCase,
  this.kIsDebug = false,
  this.showFloating = true,
  this.navigatorKey,
  this.duration,
  this.navigateToDetail,
}) {
  saveErrorUseCase = locator<SaveErrorUseCase>();
  saveResponseUseCase = locator<SaveResponseUseCase>();
  saveRequestUseCase = locator<SaveRequestUseCase>();
}