copyWith method
Implementation
SocketResponse<T> copyWith({
String? status,
T? data,
String? error,
}) {
return SocketResponse(
status: status ?? this.status,
data: data ?? this.data,
error: error ?? this.error,
);
}
SocketResponse<T> copyWith({
String? status,
T? data,
String? error,
}) {
return SocketResponse(
status: status ?? this.status,
data: data ?? this.data,
error: error ?? this.error,
);
}