StakingMessage constructor

StakingMessage({
  1. DirectiveCreateValidator? createValidatorMessage,
  2. DirectiveEditValidator? editValidatorMessage,
  3. DirectiveDelegate? delegateMessage,
  4. DirectiveUndelegate? undelegateMessage,
  5. DirectiveCollectRewards? collectRewards,
  6. List<int>? nonce,
  7. List<int>? gasPrice,
  8. List<int>? gasLimit,
})

Implementation

factory StakingMessage({
  DirectiveCreateValidator? createValidatorMessage,
  DirectiveEditValidator? editValidatorMessage,
  DirectiveDelegate? delegateMessage,
  DirectiveUndelegate? undelegateMessage,
  DirectiveCollectRewards? collectRewards,
  $core.List<$core.int>? nonce,
  $core.List<$core.int>? gasPrice,
  $core.List<$core.int>? gasLimit,
}) {
  final _result = create();
  if (createValidatorMessage != null) {
    _result.createValidatorMessage = createValidatorMessage;
  }
  if (editValidatorMessage != null) {
    _result.editValidatorMessage = editValidatorMessage;
  }
  if (delegateMessage != null) {
    _result.delegateMessage = delegateMessage;
  }
  if (undelegateMessage != null) {
    _result.undelegateMessage = undelegateMessage;
  }
  if (collectRewards != null) {
    _result.collectRewards = collectRewards;
  }
  if (nonce != null) {
    _result.nonce = nonce;
  }
  if (gasPrice != null) {
    _result.gasPrice = gasPrice;
  }
  if (gasLimit != null) {
    _result.gasLimit = gasLimit;
  }
  return _result;
}