FResizableRegion constructor

const FResizableRegion({
  1. required double initialExtent,
  2. required ValueWidgetBuilder<FResizableRegionData> builder,
  3. double? minExtent,
  4. Widget? child,
  5. Key? key,
})

Creates a FResizableRegion.

Implementation

const FResizableRegion({
  required this.initialExtent,
  required this.builder,
  this.minExtent,
  this.child,
  super.key,
})  : assert(0 < initialExtent, 'The initial extent should be positive, but it is $initialExtent.'),
      assert(minExtent == null || 0 < minExtent, 'The min extent should be positive, but it is $minExtent.'),
      assert(
        minExtent == null || minExtent <= initialExtent,
        'The initial extent, $initialExtent is less than the min extent, $minExtent.',
      );