AppNotificationConfig constructor

const AppNotificationConfig({
  1. int? notificationLimit,
  2. Uri archiveApiEndpoint(
    1. AppNotification notification
    )?,
  3. BaseRequest markAsReadRequestMapper(
    1. Request request,
    2. AppNotification notification
    )?,
  4. BaseRequest archiveRequestMapper(
    1. Request request,
    2. AppNotification notification
    )?,
  5. BaseRequest archiveAllRequestMapper(
    1. Request request
    )?,
  6. Uri archiveAllApiEndpoint(
    1. Map<String, dynamic>? params
    )?,
  7. Uri markAllAsReadApiEndpoint(
    1. Map<String, dynamic>? params
    )?,
  8. BaseRequest markAllAsReadRequestMapper(
    1. Request request
    )?,
  9. int getCountResponseParser(
    1. Response response
    )?,
  10. List<AppNotification> getListResponseParser(
    1. Response response
    )?,
  11. required Uri getListApiEndpoint(
    1. Map<String, dynamic>? params
    ),
  12. Uri markAsReadCompleteApiEndpoint(
    1. AppNotification notification
    )?,
  13. required Uri getCountApiEndpoint(
    1. Map<String, dynamic>? params
    ),
  14. NotificationMetadataMapper? metadataMapper,
  15. String? archiveMethod,
})

Implementation

const AppNotificationConfig({
  this.notificationLimit,
  this.archiveApiEndpoint,
  this.markAsReadRequestMapper,
  this.archiveRequestMapper,
  this.archiveAllRequestMapper,
  this.archiveAllApiEndpoint,
  this.markAllAsReadApiEndpoint,
  this.markAllAsReadRequestMapper,
  this.getCountResponseParser,
  this.getListResponseParser,
  required this.getListApiEndpoint,
  this.markAsReadCompleteApiEndpoint,
  required this.getCountApiEndpoint,
  this.metadataMapper,
  this.archiveMethod,
});