ResourceDescriptor constructor
ResourceDescriptor({
- String? type,
- Iterable<
String> ? pattern, - String? nameField,
- ResourceDescriptor_History? history,
- String? plural,
- String? singular,
- 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;
}