SpaceMin constructor

const SpaceMin({
  1. Key? key,
  2. double min = 0,
  3. double? max,
  4. bool? maxExpend,
  5. double? crossAxisExtent,
  6. Color? color,
})

Creates a flexible space with min (and optional max) extent.

Implementation

const SpaceMin({
  super.key,
  this.min = 0,
  this.max,
  bool? maxExpend,
  this.crossAxisExtent,
  this.color,
})  : assert(min >= 0 && min < double.infinity),
      assert(max == null || (max >= min && max < double.infinity)),
      assert(crossAxisExtent == null || crossAxisExtent >= 0),
      maxExpend = maxExpend ?? (max == null);