FitHorizontally constructor

const FitHorizontally({
  1. Key? key,
  2. Widget? child,
  3. double? shrinkLimit,
  4. bool fitsHeight = false,
  5. 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);