issueTokens method Null safety

Future<PaymentResponse?> issueTokens(
  1. String to,
  2. String from,
  3. int amount,
  4. {String? memo}
)

Issue tokens to the specified account.

Args: to (String): The account that will receive the tokens from (String): The account that will issue the tokens. amount (int): The amount of tokens to issue. memo (String): A memo to send with the transaction.

Implementation

Future<PaymentResponse?> issueTokens(String to, String from, int amount, {String? memo}) async {
  return await MotorFlutterPlatform.instance.issuePayment(PaymentRequest(to: to, from: from, amount: amount, memo: memo));
}