Contract constructor

Contract({
  1. String? contractAddress,
  2. ContractInfo? contractInfo,
  3. Iterable<Model>? contractState,
})

Implementation

factory Contract({
  $core.String? contractAddress,
  $3.ContractInfo? contractInfo,
  $core.Iterable<$3.Model>? contractState,
}) {
  final _result = create();
  if (contractAddress != null) {
    _result.contractAddress = contractAddress;
  }
  if (contractInfo != null) {
    _result.contractInfo = contractInfo;
  }
  if (contractState != null) {
    _result.contractState.addAll(contractState);
  }
  return _result;
}