Skip to main content
Version: 0.6.3

Static Table

This method is used to retrieve detailed information about a specific static table.

Parameters

ParameterTypeDescription
idintThe unique identifier of the static table.
domainStringThe domain (region) code for retrieving static table detail.
langDataLanguageThe language for static table data (default: DataLanguage.id).

Example

Example usage and sample output:

Preview

// Fetch static table detail from BPS API
final staticTable = await StadataFlutter.instance.view.staticTable(
id: 'example_static_table_id', // Replace with the desired static table ID
domain: 'example_domain', // Replace with the desired Domain Code
lang: DataLanguage.id,
);


print('Table ID: ${staticTable.id}');
print('Table Title: ${staticTable.title}');
print('Subject ID: ${staticTable.subjectId}');
print('Subject: ${staticTable.subject}');
print('Size: ${staticTable.size}');
print('Table: ${staticTable.table}');
print('Updated At: ${staticTable.updatedAt}');
print('Created At: ${staticTable.createdAt}');
print('Excel Link: ${staticTable.excel}');

Properties (StaticTable)

PropertyTypeDescription
idintThe unique identifier of the table.
titleStringThe title or name of the table.
subjectIdintThe optional subject identifier associated with the table.
subjectString?The optional subject name or description.
sizeStringThe file size.
tableString?The HTML representation of the table.
updatedAtDateTimeThe date and time when the table was last updated.
createdAtDateTime?The optional date and time when the table was created.
excelStringA link or reference to the associated Excel file for the table.