SimpleArticle.newInstance constructor

SimpleArticle.newInstance(
  1. int id,
  2. String title,
  3. String link,
  4. String publishedDate,
  5. String publishedSince,
  6. String teaserText,
  7. FeatureImage featureImage,
  8. int parentCategoryId,
  9. String parentCategory,
  10. int categoryId,
  11. String category,
  12. String issueTitle,
  13. String issueTeaserText,
  14. String issueNumber,
  15. String volumeNumber,
  16. String paragraphRawContent,
  17. String issuePublishedDate,
  18. bool isPDFArticle,
  19. String pdfURL,
  20. List<String> authors,
)

Implementation

factory SimpleArticle.newInstance(
    int id,
    String title,
    String link,
    String publishedDate,
    String publishedSince,
    String teaserText,
    FeatureImage featureImage,
    int parentCategoryId,
    String parentCategory,
    int categoryId,
    String category,
    String issueTitle,
    String issueTeaserText,
    String issueNumber,
    String volumeNumber,
    String paragraphRawContent,
    String issuePublishedDate,
    bool isPDFArticle,
    String pdfURL,
    List<String> authors) {
  return SimpleArticle(
      id: id,
      title: title,
      link: link,
      publishedDate: publishedDate,
      publishedSince: publishedSince,
      teaserText: teaserText,
      featureImage: featureImage,
      parentCategoryId: parentCategoryId,
      parentCategory: parentCategory,
      categoryId: categoryId,
      category: category,
      issueTitle: issueTitle,
      issueTeaserText: issueTeaserText,
      issueNumber: issueNumber,
      volumeNumber: volumeNumber,
      paragraphRawContent: paragraphRawContent,
      issuePublishedDate: issuePublishedDate,
      isPDFArticle: isPDFArticle,
      pdfURL: pdfURL,
      authors: authors);
}