Feed constructor

Feed(
  1. String title,
  2. int type,
  3. Uri href, {
  4. OpdsMetadata? metadata,
  5. List<Link>? links,
  6. List<Facet>? facets,
  7. List<Group>? groups,
  8. List<Publication>? publications,
  9. List<Link>? navigation,
  10. List<String>? context,
})

Implementation

Feed(
  this.title,
  this.type,
  this.href, {
  OpdsMetadata? metadata,
  List<Link>? links,
  List<Facet>? facets,
  List<Group>? groups,
  List<Publication>? publications,
  List<Link>? navigation,
  List<String>? context,
})  : this.metadata = metadata ?? OpdsMetadata(title: title),
      this.links = links ?? [],
      this.facets = facets ?? [],
      this.groups = groups ?? [],
      this.publications = publications ?? [],
      this.navigation = navigation ?? [],
      this.context = context ?? [];