FResizable constructor

FResizable({
  1. required Axis axis,
  2. required List<FResizableRegion> children,
  3. FResizableStyle? style,
  4. FResizableDivider divider = FResizableDivider.dividerWithThumb,
  5. double? crossAxisExtent,
  6. double resizePercentage = 0.005,
  7. String semanticFormatterCallback(
    1. FResizableRegionData,
    2. FResizableRegionData
    ) = _label,
  8. FResizableController? controller,
  9. double? hitRegionExtent,
  10. Key? key,
})

Creates a FResizable.

Implementation

FResizable({
  required this.axis,
  required this.children,
  this.style,
  this.divider = FResizableDivider.dividerWithThumb,
  this.crossAxisExtent,
  this.resizePercentage = 0.005,
  this.semanticFormatterCallback = _label,
  FResizableController? controller,
  double? hitRegionExtent,
  super.key,
})  : assert(
        crossAxisExtent == null || 0 < crossAxisExtent,
        'The crossAxisExtent should be positive, but is $crossAxisExtent.',
      ),
      assert(
        hitRegionExtent == null || 0 < hitRegionExtent,
        'The hitRegionExtent should be positive, but is $hitRegionExtent.',
      ),
      controller = controller ?? FResizableController.cascade(),
      hitRegionExtent = hitRegionExtent ?? (Touch.primary ? 60 : 10);