getScreenRect method
- GemMapController object
Gets the screen rectangle occupied by this object in the map view, or null if not available.
Parameters
- IN object The GemMapController instance for the map view.
Returns
- The screen rectangle as RectType<int>, or null if not available.
Implementation
RectType<int>? getScreenRect(final GemMapController object) {
final OperationResult resultString = objectMethod(
_pointerId,
'MapSceneObject',
'getScreenRect',
args: object.pointerId,
);
final int gemApiError = resultString['gemApiError'];
if (gemApiError != 0) {
return null;
}
return RectType<int>.fromJson(resultString['result']);
}