Skip to main content
Version: 0.7.0

Strategic Indicators

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

Parameters

ParameterTypeDescription
domainStringDomain code (region) to retrieve strategic indicators.
langDataLanguageLanguage for strategic indicators data (default: DataLanguage.id).
pageintPage number (default: 1).
variableIDint?Variable ID of the strategic indicator (optional).

Examples

Example usage and output:

Preview

// Fetch strategic indicator data from BPS
final result = await StadataFlutter.instance.list.strategicIndicators(
domain: 'example_domain_code', // Replace with the desired domain code
lang: DataLanguage.id,
page: 1,
variableID: 'example_variable_id', // Replace with the desired variable ID or null
);

final strategicIndicators = result.data;
final pagination = result.pagination;

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

// Print retrieved strategic indicator data
for (final strategicIndicator in strategicIndicators) {
print('Indicator ID: ${strategicIndicator.id}');
print('Title: ${strategicIndicator.title}');
print('Variable ID: ${strategicIndicator.variableID}');
print('Category ID: ${strategicIndicator.categoryID}');
print('Name: ${strategicIndicator.name}');
print('Value: ${strategicIndicator.value}');
print('Unit: ${strategicIndicator.unit}');
print('Data Source: ${strategicIndicator.dataSource}');
print('Period: ${strategicIndicator.period}');
print('CSA Subject ID: ${strategicIndicator.csaSubjectID}');
print('HASH ID: ${strategicIndicator.hashID}');
}

Properties (StrategicIndicator)

PropertyTypeDescription
idintThe unique identifier for the Strategic Indicator.
titleStringThe title of the Strategic Indicator.
nameStringName or description of the indicator.
variableIDintVariable ID of the indicator.
csaSubjectIDint?CSA Subject ID of the indicator.
categoryIDintCategory ID of the indicator.
hashIDStringHash ID of the indicator.
valuedoubleValue of the strategic indicator.
unitStringUnit of the indicator.
dataSourceStringData source of the indicator.
periodStringData period of the indicator.