boxModel property

Future<BoxModel?> boxModel

This method returns boxes of the element, or null if the element is not visible. Boxes are represented as an array of points; Box points are sorted clock-wise.

Implementation

Future<BoxModel?> get boxModel async {
  try {
    return await executionContext.domApi
        .getBoxModel(objectId: remoteObject.objectId);
  } on ServerException catch (e) {
    if (ServerException.matcher('Could not compute box model.')(e)) {
      return null;
    }
    rethrow;
  }
}