forInvokingContract method Null safety

InvokeHostFuncOpBuilder forInvokingContract(
  1. String contractID,
  2. String functionName,
  3. {List<XdrSCVal>? functionArguments,
  4. XdrLedgerFootprint? footprint}
)

Implementation

static InvokeHostFuncOpBuilder forInvokingContract(
    String contractID, String functionName,
    {List<XdrSCVal>? functionArguments, XdrLedgerFootprint? footprint}) {
  InvokeHostFuncOpBuilder builder = InvokeHostFuncOpBuilder(
      XdrHostFunctionType.HOST_FUNCTION_TYPE_INVOKE_CONTRACT);
  builder._contractID = contractID;
  builder._functionName = functionName;
  builder._arguments = functionArguments;
  builder._footprint = footprint;
  return builder;
}