copyWith method
AppNotificationConfig
copyWith({
- int? notificationLimit,
- Uri archiveApiEndpoint(
- AppNotification notification
- BaseRequest markAsReadRequestMapper(
- Request request,
- AppNotification notification
- BaseRequest archiveRequestMapper(
- Request request,
- AppNotification notification
- BaseRequest archiveAllRequestMapper(
- Request request
- Uri archiveAllApiEndpoint()?,
- int getCountResponseParser(
- Response response
- List<
AppNotification> getListResponseParser(- Response response
- Uri getListApiEndpoint()?,
- Uri markAsReadCompleteApiEndpoint(
- AppNotification notification
- Uri getCountApiEndpoint()?,
- Uri markAllAsReadApiEndpoint()?,
- BaseRequest markAllAsReadRequestMapper(
- Request request
- NotificationMetadataMapper? metadataMapper,
- 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,
);
}