AnnotatedRegion<T extends Object> constructor

const AnnotatedRegion<T extends Object>({
  1. Key? key,
  2. required Widget child,
  3. required T value,
  4. 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({
  super.key,
  required Widget super.child,
  required this.value,
  this.sized = true,
});