RenderAnnotatedRegion<T extends Object> constructor

RenderAnnotatedRegion<T extends Object>({
  1. required T value,
  2. required bool sized,
  3. RenderBox? child,
})

Creates a new RenderAnnotatedRegion to insert value into the layer tree.

If sized is true, the layer is provided with the size of this render object to clip the results of Layer.find.

Neither value nor sized can be null.

Implementation

RenderAnnotatedRegion({
  required T value,
  required bool sized,
  RenderBox? child,
}) : _value = value,
     _sized = sized,
     _layerHandle = LayerHandle<AnnotatedRegionLayer<T>>(),
     super(child);