ShapePadding.proportional constructor

ShapePadding.proportional(
  1. double fraction, {
  2. required ShapePart child,
})

The same fraction of the region's width and height on every side, such as text kept clear of an ellipse's curve. It never raises the minimum size.

Implementation

ShapePadding.proportional(double fraction, {required ShapePart child})
  : this._(fraction, fraction, fraction, fraction, true, child);