findExtraInfo method
- String startStr
Finds the first extra info entry that begins with startStr.
The returned string will have leading non-alphanumeric characters trimmed.
Parameters
startStr: Prefix string to search for.
Returns
- String: The first matching extra info entry with leading non-alphanumeric characters removed, or an empty string when no match is found.
Implementation
String findExtraInfo(String startStr) {
final OperationResult resultString = objectMethod(
pointerId,
'Landmark',
'findExtraInfo',
args: startStr,
);
String result = resultString['result'];
result = result.replaceFirst(RegExp(r'^[^a-zA-Z0-9]+'), '');
return result;
}