ResourceName constructor

ResourceName({
  1. String? namespace,
  2. String? type,
  3. String? subtype,
  4. String? name,
  5. Iterable<String>? remotePath,
  6. String? localName,
})

Implementation

factory ResourceName({
  $core.String? namespace,
  $core.String? type,
  $core.String? subtype,
  $core.String? name,
  $core.Iterable<$core.String>? remotePath,
  $core.String? localName,
}) {
  final $result = create();
  if (namespace != null) {
    $result.namespace = namespace;
  }
  if (type != null) {
    $result.type = type;
  }
  if (subtype != null) {
    $result.subtype = subtype;
  }
  if (name != null) {
    $result.name = name;
  }
  if (remotePath != null) {
    $result.remotePath.addAll(remotePath);
  }
  if (localName != null) {
    $result.localName = localName;
  }
  return $result;
}