getPadding method
Implementation
EdgeInsets getPadding(index, length) {
if (contentPadding) {
return FxSpacing.x((spacing ?? flexSpacing) / 2);
} else {
return FxSpacing.fromLTRB(index == 0 ? 0 : (spacing ?? flexSpacing) / 2, 0,
index == length - 1 ? 0 : (spacing ?? flexSpacing) / 2, 0);
}
}