ShapeOutside constructor

ShapeOutside({
  1. ShapeEdge edge = ShapeEdge.top,
  2. required double extent,
  3. double gap = 0,
  4. String? textHeightSlot,
  5. required ShapePart child,
})

Implementation

ShapeOutside({
  this.edge = ShapeEdge.top,
  required this.extent,
  this.gap = 0,
  this.textHeightSlot,
  required this.child,
}) {
  if (!extent.isFinite ||
      extent < 0 ||
      (extent == 0 && textHeightSlot == null) ||
      !gap.isFinite ||
      gap < 0 ||
      (textHeightSlot?.trim().isEmpty ?? false)) {
    throw ArgumentError('An outside band needs a positive extent');
  }
}