copyWith method

Node copyWith({
  1. Seed? seed,
  2. int? connections,
  3. int? lastblock,
  4. int? pendings,
  5. int? delta,
  6. String? branch,
  7. String? version,
  8. String? lastblockhash,
  9. String? headershash,
  10. String? sumaryhash,
  11. int? utcTime,
})

Implementation

Node copyWith({
  Seed? seed,
  int? connections,
  int? lastblock,
  int? pendings,
  int? delta,
  String? branch,
  String? version,
  String? lastblockhash,
  String? headershash,
  String? sumaryhash,
  int? utcTime,
}) {
  return Node(
    seed: seed ?? this.seed,
    connections: connections ?? this.connections,
    lastblock: lastblock ?? this.lastblock,
    pendings: pendings ?? this.pendings,
    delta: delta ?? this.delta,
    branch: branch ?? this.branch,
    version: version ?? this.version,
    lastblockhash: lastblockhash ?? this.lastblockhash,
    headershash: headershash ?? this.headershash,
    sumaryhash: sumaryhash ?? this.sumaryhash,
    utcTime: utcTime ?? this.utcTime,
  );
}