copyWith method
AcpError
copyWith(
{ - Object? code = _acpCopyWithAbsent,
- Object? message = _acpCopyWithAbsent,
- Object? data = _acpCopyWithAbsent,
})
Implementation
AcpError copyWith({
Object? code = _acpCopyWithAbsent,
Object? message = _acpCopyWithAbsent,
Object? data = _acpCopyWithAbsent,
}) => AcpError(
code: identical(code, _acpCopyWithAbsent) ? this.code : code as ErrorCode,
message: identical(message, _acpCopyWithAbsent)
? this.message
: message as String,
data: identical(data, _acpCopyWithAbsent) ? this.data : data as Object?,
);