getParentHPadding static method
Implementation
static double getParentHPadding(int paddings, double? padding,
double padding2, double padding3, double padding4) {
double insets = 0.0;
if (paddings > 0) {
// pad all
if (paddings == 1)
insets = (padding ?? 0) * 2;
// pad directions v,h
else if (paddings == 2)
insets = padding2 * 2;
// pad sides top, right, bottom, left
else if (paddings > 2) insets = padding2 + padding4;
}
//should add up all of the padded siblings to do this.
return insets;
}