PreferredSizeModifier constructor

const PreferredSizeModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. required Size preferredSize,
})

Creates a widget that has a preferred size that the parent can query.

Implementation

const PreferredSizeModifier({
  super.key,
  super.modifierKey,
  super.child,
  required this.preferredSize,
});