CreateContractHostFunction constructor Null safety

CreateContractHostFunction(
  1. String _wasmId,
  2. {XdrUint256? salt,
  3. List<ContractAuth>? auth}
)

Implementation

CreateContractHostFunction(this._wasmId,
    {XdrUint256? salt, List<ContractAuth>? auth})
    : super(auth) {
  if (salt != null) {
    this._salt = salt;
  } else {
    this._salt = new XdrUint256(TweetNaCl.randombytes(32));
  }
}