copyWith method

Failure copyWith({
  1. String? code,
  2. String? message,
  3. Exception? innerException,
})

Implementation

Failure copyWith({
  String? code,
  String? message,
  Exception? innerException,
}) {
  return Failure(
    code ?? this.code,
    message: message ?? this.message,
    innerException: innerException ?? this.innerException,
  );
}