copyWith method
ApiResponse<BodyType, InnerType>
copyWith({
- int? statusCode,
- Object? error,
- Map<
String, dynamic> ? headers, - dynamic bodyString,
- BodyType? body,
- Pagination? pagination,
- Map<
String, dynamic> ? extra, - ApiRequest<
BodyType, InnerType> ? request,
Implementation
ApiResponse<BodyType, InnerType> copyWith(
{int? statusCode,
Object? error,
Map<String, dynamic>? headers,
dynamic bodyString,
BodyType? body,
Pagination? pagination,
Map<String, dynamic>? extra,
ApiRequest<BodyType, InnerType>? request}) =>
ApiResponse<BodyType, InnerType>(
bodyString: bodyString ?? this.bodyString,
statusCode: statusCode ?? this.statusCode,
pagination: pagination ?? this.pagination,
headers: headers ?? this.headers,
body: body ?? this.body,
error: error ?? this.error,
extra: extra ?? this.extra,
request: request ?? this.request);