ChainParams constructor

ChainParams({
  1. List<int>? chainId,
  2. Int64? headBlockNumber,
  3. Int64? refBlockPrefix,
})

Implementation

factory ChainParams({
  $core.List<$core.int>? chainId,
  $fixnum.Int64? headBlockNumber,
  $fixnum.Int64? refBlockPrefix,
}) {
  final _result = create();
  if (chainId != null) {
    _result.chainId = chainId;
  }
  if (headBlockNumber != null) {
    _result.headBlockNumber = headBlockNumber;
  }
  if (refBlockPrefix != null) {
    _result.refBlockPrefix = refBlockPrefix;
  }
  return _result;
}