Widget.fittedBox constructor Null safety

const Widget.fittedBox(
  1. {Key? key,
  2. @Default(BoxFit.contain) BoxFit fit,
  3. @Default(Alignment.center) Alignment alignment,
  4. @Default(Clip.none) Clip clipBehavior,
  5. Widget? child}
)

Implementation

const factory Widget.fittedBox({
  Key? key,
  @Default(BoxFit.contain) BoxFit fit,
  @Default(Alignment.center) Alignment alignment,
  @Default(Clip.none) Clip clipBehavior,
  Widget? child,
}) = FittedBox;