copyWith method

ErrorResponse copyWith({
  1. int? code,
  2. String? message,
  3. String? data,
})

Implementation

ErrorResponse copyWith({
  int? code,
  String? message,
  String? data,
}) {
  return ErrorResponse(
    code: code ?? this.code,
    message: message ?? this.message,
    data: data ?? this.data,
  );
}