copyWith method

PhantomData copyWith({
  1. String? address,
  2. String? chainId,
  3. ConnectionMetadata? self,
  4. ConnectionMetadata? peer,
})

Implementation

PhantomData copyWith({
  String? address,
  String? chainId,
  ConnectionMetadata? self,
  ConnectionMetadata? peer,
}) {
  return PhantomData(
    address: address ?? this.address,
    chainId: chainId ?? this.chainId,
    self: self ?? this.self,
    peer: peer ?? this.peer,
  );
}