AppDescriptor constructor

AppDescriptor({
  1. AuthnDescriptor? authn,
  2. ChainDescriptor? chain,
  3. CodecDescriptor? codec,
  4. ConfigurationDescriptor? configuration,
  5. QueryServicesDescriptor? queryServices,
  6. TxDescriptor? tx,
})

Implementation

factory AppDescriptor({
  AuthnDescriptor? authn,
  ChainDescriptor? chain,
  CodecDescriptor? codec,
  ConfigurationDescriptor? configuration,
  QueryServicesDescriptor? queryServices,
  TxDescriptor? tx,
}) {
  final _result = create();
  if (authn != null) {
    _result.authn = authn;
  }
  if (chain != null) {
    _result.chain = chain;
  }
  if (codec != null) {
    _result.codec = codec;
  }
  if (configuration != null) {
    _result.configuration = configuration;
  }
  if (queryServices != null) {
    _result.queryServices = queryServices;
  }
  if (tx != null) {
    _result.tx = tx;
  }
  return _result;
}