getOverlayByUId method
- int overlayUid
Find an overlay by its UID.
Parameters
overlayUid: Unique identifier of the overlay dataset.
Returns
- The matching OverlayInfo, or null when not found.
Also see:
- CommonOverlayId - Predefined common overlay identifiers.
Implementation
OverlayInfo? getOverlayByUId(final int overlayUid) {
final OperationResult resultString = objectMethod(
pointerId,
'OverlayCollection',
'getOverlayByUid',
args: overlayUid,
);
final int id = resultString['result'];
if (id == -1) {
return null;
}
return OverlayInfo.init(id);
}