RenderAnnotatedRegion<T> constructor

RenderAnnotatedRegion<T>({@required T value, @required bool sized, 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.findRegion.

Neither value nor sized can be null.

Implementation

RenderAnnotatedRegion({
  @required T value,
  @required bool sized,
  RenderBox child,
}) : assert(value != null),
     assert(sized != null),
     _value = value,
     _sized = sized,
     super(child);