PositionedComponentInstance constructor

PositionedComponentInstance({
  1. required ComponentInstance componentInstance,
  2. required Rect rect,
  3. ComponentInstance? parentComponentInstance,
})

Creates a positioned component instance with the given bounds.

Parameters:

  • componentInstance: The component to be positioned
  • rect: The final position and size of the component
  • parentComponentInstance: Optional parent component responsible for rendering

Implementation

PositionedComponentInstance({
  required this.componentInstance,
  required this.rect,
  this.parentComponentInstance,
});