getBoxModel method
Future<BoxModel>
getBoxModel({
- NodeId? nodeId,
- BackendNodeId? backendNodeId,
- RemoteObjectId? objectId,
Returns boxes for the given node.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
Returns: Box model for the node.
Implementation
Future<BoxModel> getBoxModel(
{NodeId? nodeId,
BackendNodeId? backendNodeId,
runtime.RemoteObjectId? objectId}) async {
var result = await _client.send('DOM.getBoxModel', {
if (nodeId != null) 'nodeId': nodeId,
if (backendNodeId != null) 'backendNodeId': backendNodeId,
if (objectId != null) 'objectId': objectId,
});
return BoxModel.fromJson(result['model'] as Map<String, dynamic>);
}