AuthorizedInvocation constructor Null safety

AuthorizedInvocation(
  1. String contractId,
  2. String functionName,
  3. {List<XdrSCVal>? args,
  4. List<AuthorizedInvocation>? subInvocations}
)

Constructs an AuthorizedInvocation object for the given contractId and functionName of the contract function to be called.

Optional list of args for the contract function to be called and optional list of subInvocations can be provided.

Implementation

AuthorizedInvocation(this.contractId, this.functionName,
    {List<XdrSCVal>? args, List<AuthorizedInvocation>? subInvocations}) {
  if (args != null) {
    this.args = args;
  }
  if (subInvocations != null) {
    this.subInvocations = subInvocations;
  }
}