PreferredSize constructor

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

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

Implementation

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