setPage method

void setPage(
  1. String? partOf,
  2. String? parts,
  3. String? imports,
  4. String? name,
  5. String? description,
  6. String? args,
  7. String? contentType,
  8. String? dart,
  9. String? lastModified,
  10. String? etag, [
  11. int? line,
])

Sets the page information.

Implementation

void setPage(String? partOf, String? parts, String? imports,
    String? name, String? description, String? args,
    String? contentType, String? dart, String? lastModified,
    String? etag, [int? line]) {
  _partOf = partOf;
  _noEL(partOf, "the partOf attribute", line);
  _parts = parts;
  _noEL(parts, "the part attribute", line);
  _import = imports;
  _noEL(_import, "the import attribute", line);
  _name = name;
  _noEL(name, "the name attribute", line);
  _desc = description;
  _noEL(description, "the description attribute", line);
  _args = args;
  _noEL(args, "the args attribute", line);
  _dart = dart;
  _noEL(dart, "the dart attribute", line);
  _contentType = contentType;

  if (etag != null && etag.isNotEmpty) _etag = etag;

  if (lastModified != null && lastModified.isNotEmpty) {
    if (lastModified != "compile" && lastModified != "start"
    && !isEL(lastModified))
      _error("Unknown lastModified attribute: $lastModified");

    _lastModified = lastModified;
  }
}