FFPadding constructor

FFPadding({
  1. double? legacyLeft,
  2. double? legacyTop,
  3. double? legacyRight,
  4. double? legacyBottom,
  5. double? legacyHorizontal,
  6. double? legacyVertical,
  7. double? legacyAll,
  8. FFPadding_PaddingType? type,
  9. FFDoubleValue? leftValue,
  10. FFDoubleValue? topValue,
  11. FFDoubleValue? rightValue,
  12. FFDoubleValue? bottomValue,
  13. FFDoubleValue? horizontalValue,
  14. FFDoubleValue? verticalValue,
  15. FFDoubleValue? allValue,
  16. FFAnimatedPadding? animatedPadding,
  17. FFIdentifier? themeSpacingToken,
})

Implementation

factory FFPadding({
  $core.double? legacyLeft,
  $core.double? legacyTop,
  $core.double? legacyRight,
  $core.double? legacyBottom,
  $core.double? legacyHorizontal,
  $core.double? legacyVertical,
  $core.double? legacyAll,
  FFPadding_PaddingType? type,
  FFDoubleValue? leftValue,
  FFDoubleValue? topValue,
  FFDoubleValue? rightValue,
  FFDoubleValue? bottomValue,
  FFDoubleValue? horizontalValue,
  FFDoubleValue? verticalValue,
  FFDoubleValue? allValue,
  FFAnimatedPadding? animatedPadding,
  FFIdentifier? themeSpacingToken,
}) {
  final result = create();
  if (legacyLeft != null) result.legacyLeft = legacyLeft;
  if (legacyTop != null) result.legacyTop = legacyTop;
  if (legacyRight != null) result.legacyRight = legacyRight;
  if (legacyBottom != null) result.legacyBottom = legacyBottom;
  if (legacyHorizontal != null) result.legacyHorizontal = legacyHorizontal;
  if (legacyVertical != null) result.legacyVertical = legacyVertical;
  if (legacyAll != null) result.legacyAll = legacyAll;
  if (type != null) result.type = type;
  if (leftValue != null) result.leftValue = leftValue;
  if (topValue != null) result.topValue = topValue;
  if (rightValue != null) result.rightValue = rightValue;
  if (bottomValue != null) result.bottomValue = bottomValue;
  if (horizontalValue != null) result.horizontalValue = horizontalValue;
  if (verticalValue != null) result.verticalValue = verticalValue;
  if (allValue != null) result.allValue = allValue;
  if (animatedPadding != null) result.animatedPadding = animatedPadding;
  if (themeSpacingToken != null) result.themeSpacingToken = themeSpacingToken;
  return result;
}