RenderFittedBox constructor

RenderFittedBox({
  1. BoxFit fit = BoxFit.contain,
  2. AlignmentGeometry alignment = Alignment.center,
  3. TextDirection? textDirection,
  4. RenderBox? child,
  5. Clip clipBehavior = Clip.none,
})

Scales and positions its child within itself.

Implementation

RenderFittedBox({
  this._fit = BoxFit.contain,
  this._alignment = Alignment.center,
  this._textDirection,
  RenderBox? child,
  this._clipBehavior = Clip.none,
}) : super(child);