AnnotatedRegionModifier<T extends Object> constructor

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