copyWith method

SocketResponse<T> copyWith({
  1. String? status,
  2. T? data,
  3. String? error,
})

Implementation

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