getScreenRect method

RectType<int>? getScreenRect(
  1. GemMapController object
)

Gets the screen rectangle occupied by this object in the map view, or null if not available.

Parameters

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']);
}