PreferredSizeWidget constructor Null safety
Implementation
const factory PreferredSizeWidget({
Key? key,
required Size preferredSize,
required Widget child,
}) = PreferredSize;
const factory PreferredSizeWidget({
Key? key,
required Size preferredSize,
required Widget child,
}) = PreferredSize;