node static method

NodeSpatialItem node({
  1. required String nodeId,
  2. required Rect bounds,
})

Creates a spatial item for a node.

Implementation

static NodeSpatialItem node({required String nodeId, required Rect bounds}) =>
    NodeSpatialItem(nodeId: nodeId, bounds: bounds);