copyWith method

CleanResponse copyWith({
  1. int? statusCode,
  2. dynamic body,
  3. Map<String, String>? header,
})

Implementation

CleanResponse copyWith({
  int? statusCode,
  dynamic body,
  Map<String, String>? header,
}) {
  return CleanResponse(
    statusCode: statusCode ?? this.statusCode,
    data: body ?? data,
    header: header ?? this.header,
  );
}