FittedBox constructor Null safety
- {Key? key,
 - BoxFit fit = BoxFit.contain,
 - AlignmentGeometry alignment = Alignment.center,
 - Clip clipBehavior = Clip.none,
 - Widget? child}
 
Creates a widget that scales and positions its child within itself according to fit.
Implementation
const FittedBox({
  super.key,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.clipBehavior = Clip.none,
  super.child,
}) : assert(fit != null),
     assert(alignment != null),
     assert(clipBehavior != null);