copyWith method

AppNotificationConfig copyWith({
  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()?,
  7. int getCountResponseParser(
    1. Response response
    )?,
  8. List<AppNotification> getListResponseParser(
    1. Response response
    )?,
  9. Uri getListApiEndpoint(
    1. Map<String, dynamic>? params
    )?,
  10. Uri markAsReadCompleteApiEndpoint(
    1. AppNotification notification
    )?,
  11. Uri getCountApiEndpoint(
    1. Map<String, dynamic>? params
    )?,
  12. Uri markAllAsReadApiEndpoint(
    1. Map<String, dynamic>? params
    )?,
  13. BaseRequest markAllAsReadRequestMapper(
    1. Request request
    )?,
  14. NotificationMetadataMapper? metadataMapper,
  15. String? archiveMethod,
})

Implementation

AppNotificationConfig copyWith({
  int? notificationLimit,
  Uri Function(AppNotification notification)? archiveApiEndpoint,
  BaseRequest Function(Request request, AppNotification notification)? markAsReadRequestMapper,
  BaseRequest Function(Request request, AppNotification notification)? archiveRequestMapper,
  BaseRequest Function(Request request)? archiveAllRequestMapper,
  Uri Function()? archiveAllApiEndpoint,
  int Function(Response response)? getCountResponseParser,
  List<AppNotification> Function(Response response)? getListResponseParser,
  Uri Function(Map<String, dynamic>? params)? getListApiEndpoint,
  Uri Function(AppNotification notification)? markAsReadCompleteApiEndpoint,
  Uri Function(Map<String, dynamic>? params)? getCountApiEndpoint,
  Uri Function(Map<String, dynamic>? params)? markAllAsReadApiEndpoint,
  BaseRequest Function(Request request)? markAllAsReadRequestMapper,
  NotificationMetadataMapper? metadataMapper,
  String? archiveMethod,
}) {
  return AppNotificationConfig(
    notificationLimit: notificationLimit ?? this.notificationLimit,
    archiveApiEndpoint: archiveApiEndpoint ?? this.archiveApiEndpoint,
    markAsReadRequestMapper: markAsReadRequestMapper ?? this.markAsReadRequestMapper,
    archiveRequestMapper: archiveRequestMapper ?? this.archiveRequestMapper,
    archiveAllRequestMapper: archiveAllRequestMapper ?? this.archiveAllRequestMapper,
    getCountResponseParser: getCountResponseParser ?? this.getCountResponseParser,
    getListResponseParser: getListResponseParser ?? this.getListResponseParser,
    getListApiEndpoint: getListApiEndpoint ?? this.getListApiEndpoint,
    markAsReadCompleteApiEndpoint: markAsReadCompleteApiEndpoint ?? this.markAsReadCompleteApiEndpoint,
    getCountApiEndpoint: getCountApiEndpoint ?? this.getCountApiEndpoint,
    markAllAsReadApiEndpoint: markAllAsReadApiEndpoint ?? this.markAllAsReadApiEndpoint,
    markAllAsReadRequestMapper: markAllAsReadRequestMapper ?? this.markAllAsReadRequestMapper,
    metadataMapper: metadataMapper ?? this.metadataMapper,
    archiveMethod: archiveMethod ?? this.archiveMethod,
  );
}