ResourceDescriptor constructor

ResourceDescriptor({
  1. String? type,
  2. Iterable<String>? pattern,
  3. String? nameField,
  4. ResourceDescriptor_History? history,
  5. String? plural,
  6. String? singular,
  7. Iterable<ResourceDescriptor_Style>? style,
})

Implementation

factory ResourceDescriptor({
  $core.String? type,
  $core.Iterable<$core.String>? pattern,
  $core.String? nameField,
  ResourceDescriptor_History? history,
  $core.String? plural,
  $core.String? singular,
  $core.Iterable<ResourceDescriptor_Style>? style,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (pattern != null) result.pattern.addAll(pattern);
  if (nameField != null) result.nameField = nameField;
  if (history != null) result.history = history;
  if (plural != null) result.plural = plural;
  if (singular != null) result.singular = singular;
  if (style != null) result.style.addAll(style);
  return result;
}