GenesisState constructor

GenesisState({
  1. Params? params,
  2. Iterable<SigningInfo>? signingInfos,
  3. Iterable<ValidatorMissedBlocks>? missedBlocks,
})

Implementation

factory GenesisState({
  $4.Params? params,
  $core.Iterable<SigningInfo>? signingInfos,
  $core.Iterable<ValidatorMissedBlocks>? missedBlocks,
}) {
  final _result = create();
  if (params != null) {
    _result.params = params;
  }
  if (signingInfos != null) {
    _result.signingInfos.addAll(signingInfos);
  }
  if (missedBlocks != null) {
    _result.missedBlocks.addAll(missedBlocks);
  }
  return _result;
}