ProtoHandshake constructor

ProtoHandshake({
  1. int? networkId,
  2. Int64? height,
  3. List<int>? genesis,
  4. Int64? timestamp,
  5. String? appVersion,
  6. int? peers,
  7. List<int>? oldGenesis,
})

Implementation

factory ProtoHandshake({
  $core.int? networkId,
  $fixnum.Int64? height,
  $core.List<$core.int>? genesis,
  $fixnum.Int64? timestamp,
  $core.String? appVersion,
  $core.int? peers,
  $core.List<$core.int>? oldGenesis,
}) {
  final _result = create();
  if (networkId != null) {
    _result.networkId = networkId;
  }
  if (height != null) {
    _result.height = height;
  }
  if (genesis != null) {
    _result.genesis = genesis;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (appVersion != null) {
    _result.appVersion = appVersion;
  }
  if (peers != null) {
    _result.peers = peers;
  }
  if (oldGenesis != null) {
    _result.oldGenesis = oldGenesis;
  }
  return _result;
}