FitHorizontally constructor
const
FitHorizontally({
- Key? key,
- Widget? child,
- double? shrinkLimit,
- bool fitsHeight = false,
- AlignmentGeometry alignment = Alignment.center,
Implementation
const FitHorizontally({
Key? key,
Widget? child,
double? shrinkLimit,
this.fitsHeight = false,
this.alignment = Alignment.center,
}) : assert(shrinkLimit == null || (shrinkLimit >= 0.0 && shrinkLimit <= 1.0),
"The shrinkLimit parameter is $shrinkLimit but should be between 0.0 and 1.0."),
shrinkLimit = shrinkLimit ?? defaultShrinkLimit,
super(key: key, child: child);