CreateAndTransferToken constructor

CreateAndTransferToken({
  1. String? recipientMainAddress,
  2. String? tokenMintAddress,
  3. String? recipientTokenAddress,
  4. String? senderTokenAddress,
  5. Int64? amount,
  6. int? decimals,
  7. String? memo,
  8. Iterable<String>? references,
})

Implementation

factory CreateAndTransferToken({
  $core.String? recipientMainAddress,
  $core.String? tokenMintAddress,
  $core.String? recipientTokenAddress,
  $core.String? senderTokenAddress,
  $fixnum.Int64? amount,
  $core.int? decimals,
  $core.String? memo,
  $core.Iterable<$core.String>? references,
}) {
  final _result = create();
  if (recipientMainAddress != null) {
    _result.recipientMainAddress = recipientMainAddress;
  }
  if (tokenMintAddress != null) {
    _result.tokenMintAddress = tokenMintAddress;
  }
  if (recipientTokenAddress != null) {
    _result.recipientTokenAddress = recipientTokenAddress;
  }
  if (senderTokenAddress != null) {
    _result.senderTokenAddress = senderTokenAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (decimals != null) {
    _result.decimals = decimals;
  }
  if (memo != null) {
    _result.memo = memo;
  }
  if (references != null) {
    _result.references.addAll(references);
  }
  return _result;
}