getCategory method
- int categId
Get the overlay category by Id.
Parameters
- IN categId The category id
Returns
- null if no category is found.
- OverlayCategory if category is found
Throws
- An exception if it fails
Implementation
OverlayCategory? getCategory(final int categId) {
final OperationResult resultString = objectMethod(
_pointerId,
'OverlayInfo',
'getCategory',
args: categId,
);
if (resultString['result']['uid'] == 0) {
return null;
}
return OverlayCategory.fromJson(resultString['result']);
}