WebDavStdResource.fromProps constructor

WebDavStdResource.fromProps({
  1. required Uri path,
  2. required int status,
  3. WebDavStdResError? error,
  4. String? desc,
  5. Uri? redirect,
  6. required Iterable<WebDavStdResourceProp> props,
})

Implementation

WebDavStdResource.fromProps({
  required this.path,
  required this.status,
  this.error,
  this.desc,
  this.redirect,
  required Iterable<WebDavStdResourceProp> props,
}) : _props = {} {
  for (var p in props) {
    _props[(name: p.name, ns: p.namespace?.toString())] = p;
  }
}