preferredSize method

PreferredSize preferredSize(
  1. Size size, {
  2. Key? key,
})

Implementation

PreferredSize preferredSize(
  Size size, {
  Key? key,
}) =>
    PreferredSize(
      key: key,
      preferredSize: size,
      child: this,
    );