Skip to main content
Version: 0.7.0

Press Releases

This method is used to retrieve a list of press releases based on the selected domain (region).

Parameters

ParameterTypeDescription
domainStringThe domain (region) code for retrieving press releases.
langDataLanguageThe language for press release data (default: DataLanguage.id).
pageintThe page number (default: 1).
subcatintThe subject category id for filtering press releases (optional).
keywordString?A keyword for searching press releases (optional).
monthint?The month for filtering press releases (optional - 1..12).
yearint?The year for filtering press releases (optional).

Example

Example usage and sample output:

Preview

final result = await StadataFlutter.instance.list.pressReleases(domain: '7200');
final pressReleaseList = result.data;
final pagination = result.pagination;


// Print pagination info
print('Current Page: ${pagination.page}');
print('Total Pages: ${pagination.pages}');
print('Data Count in This Page: ${pagination.count}');
print('Per Page: ${pagination.perPage}');
print('Total: ${pagination.total}');
print('------------------------');

// Print the retrieved press release data
for (final pressRelease in pressReleaseList) {
print('Press Release ID: ${pressRelease.id}');
print('Subject ID: ${pressRelease.subject?.id}');
print('Subject Name: ${pressRelease.subject?.name}');
print('Title: ${pressRelease.title}');
print('Abstract: ${pressRelease.abstract}');
print('Release Date: ${pressRelease.releaseDate}');
print('Cover: ${pressRelease.cover}');
print('File Size: ${pressRelease.size}');
print('PDF Url: ${pressRelease.pdf}');
print('Slide Url: ${pressRelease.slide}');
print('Updated At: ${pressRelease.updatedAt}');
}

Properties (PressRelease)

PropertyTypeDescription
idintThe unique identifier of the press release.
titleStringThe title of the press release.
subjectSubject?The optional subject of the press release.
sizeStringThe file size.
pdfStringA link or reference to the associated PDF file for the press release.
coverStringThe thumbnail of the press release.
abstractString?The abstract of the press release.
updatedAtDateTimeThe date and time when the table was last updated.
releaseDateDateTime?The optional date and time when the table was created.
slideStringA link or reference to the associated Slide file for the press release.