PreferredSize constructor Null safety

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

Implementation

const factory PreferredSize(
    {final Key? key,
    required final Size preferredSize,
    required final Widget child}) = _$PreferredSize;