copyWith method

ErrorV2 copyWith({
  1. int? statusCode,
  2. String? message,
  3. String? details,
  4. dynamic exception,
})

Implementation

ErrorV2 copyWith(
    {int? statusCode, String? message, String? details, dynamic exception}) {
  return ErrorV2(
      statusCode: statusCode ?? this.statusCode,
      message: message ?? this.message,
      details: details ?? this.details,
      exception: exception ?? this.exception);
}