RenderFittedBox constructor

RenderFittedBox({BoxFit fit: BoxFit.contain, AlignmentGeometry alignment: Alignment.center, TextDirection textDirection, RenderBox child })

Scales and positions its child within itself.

The fit and alignment arguments must not be null.

Implementation

RenderFittedBox({
  BoxFit fit = BoxFit.contain,
  AlignmentGeometry alignment = Alignment.center,
  TextDirection textDirection,
  RenderBox child,
}) : assert(fit != null),
     assert(alignment != null),
     _fit = fit,
     _alignment = alignment,
     _textDirection = textDirection,
     super(child);