ModuleAnnotation constructor

ModuleAnnotation({
  1. String? moduleDescription,
  2. String? moduleCategory,
  3. Iterable<String>? properties,
  4. Iterable<String>? propertyDescriptions,
  5. Iterable<PropertyHint>? propertyHints,
  6. Iterable<DataPackage>? channelDefinition,
  7. Iterable<String>? channelDescription,
  8. bool? isInjectable,
  9. Iterable<String>? fileDependencies,
})

Implementation

factory ModuleAnnotation({
  $core.String? moduleDescription,
  $core.String? moduleCategory,
  $core.Iterable<$core.String>? properties,
  $core.Iterable<$core.String>? propertyDescriptions,
  $core.Iterable<PropertyHint>? propertyHints,
  $core.Iterable<DataPackage>? channelDefinition,
  $core.Iterable<$core.String>? channelDescription,
  $core.bool? isInjectable,
  $core.Iterable<$core.String>? fileDependencies,
}) {
  final $result = create();
  if (moduleDescription != null) {
    $result.moduleDescription = moduleDescription;
  }
  if (moduleCategory != null) {
    $result.moduleCategory = moduleCategory;
  }
  if (properties != null) {
    $result.properties.addAll(properties);
  }
  if (propertyDescriptions != null) {
    $result.propertyDescriptions.addAll(propertyDescriptions);
  }
  if (propertyHints != null) {
    $result.propertyHints.addAll(propertyHints);
  }
  if (channelDefinition != null) {
    $result.channelDefinition.addAll(channelDefinition);
  }
  if (channelDescription != null) {
    $result.channelDescription.addAll(channelDescription);
  }
  if (isInjectable != null) {
    $result.isInjectable = isInjectable;
  }
  if (fileDependencies != null) {
    $result.fileDependencies.addAll(fileDependencies);
  }
  return $result;
}