copyWith method

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

Implementation

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