FittedBoxModifier constructor

const FittedBoxModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. BoxFit fit = BoxFit.contain,
  5. AlignmentGeometry alignment = Alignment.center,
  6. Clip clipBehavior = Clip.none,
})

Creates a widget that scales and positions its child within itself according to fit.

The fit and alignment arguments must not be null.

Implementation

const FittedBoxModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.clipBehavior = Clip.none,
});