AnnotatedRegion<T> constructor

const AnnotatedRegion<T>({Key key, @required Widget child, @required T value, bool sized: true })

Creates a new annotated region to insert value into the layer tree.

Neither child nor value may be null.

sized defaults to true and controls whether the annotated region will clip its child.

Implementation

const AnnotatedRegion({
  Key key,
  @required Widget child,
  @required this.value,
  this.sized = true,
}) : assert(value != null),
     assert(child != null),
     super(key: key, child: child);