RenderFittedBox constructor
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- TextDirection? textDirection,
- RenderBox? child,
- Clip clipBehavior = Clip.none,
Scales and positions its child within itself.
Implementation
RenderFittedBox({
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
TextDirection? textDirection,
RenderBox? child,
Clip clipBehavior = Clip.none,
}) : _fit = fit,
_alignment = alignment,
_textDirection = textDirection,
_clipBehavior = clipBehavior,
super(child);