FResizable constructor
FResizable({
- required Axis axis,
- required List<
FResizableRegion> children, - FResizableStyle? style,
- FResizableDivider divider = FResizableDivider.dividerWithThumb,
- double? crossAxisExtent,
- double resizePercentage = 0.005,
- String semanticFormatterCallback() = _label,
- FResizableController? controller,
- double? hitRegionExtent,
- 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);