copyWith method

PingError copyWith({
  1. ErrorType? error,
  2. String? message,
})

Implementation

PingError copyWith({
  ErrorType? error,
  String? message,
}) {
  return PingError(
    error ?? this.error,
    message: message ?? this.message,
  );
}