getUrlTranslation method
Get URL translation by index.
Parameters
index: Zero-based index of the translation to retrieve.
Returns
- PTTranslation?: The URL translation or
nullwhen the index is invalid.
See also:
- countUrlTranslations - get the number of URL translations available.
Implementation
PTTranslation? getUrlTranslation(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'PTAlert',
'getUrlTranslation',
args: index,
);
if (resultString['result']['isValid'] == false) {
return null;
}
return PTTranslation.fromJson(resultString['result']);
}