Documentation constructor

Documentation({
  1. String? summary,
  2. String? overview,
  3. Iterable<DocumentationRule>? rules,
  4. String? documentationRootUrl,
  5. Iterable<Page>? pages,
})

Implementation

factory Documentation({
  $core.String? summary,
  $core.String? overview,
  $core.Iterable<DocumentationRule>? rules,
  $core.String? documentationRootUrl,
  $core.Iterable<Page>? pages,
}) {
  final _result = create();
  if (summary != null) {
    _result.summary = summary;
  }
  if (overview != null) {
    _result.overview = overview;
  }
  if (rules != null) {
    _result.rules.addAll(rules);
  }
  if (documentationRootUrl != null) {
    _result.documentationRootUrl = documentationRootUrl;
  }
  if (pages != null) {
    _result.pages.addAll(pages);
  }
  return _result;
}