FFBoxDecoration constructor

FFBoxDecoration({
  1. @Deprecated('This field is deprecated.') Int64? legacyLegacyColor,
  2. FFBorderRadius? borderRadius,
  3. FFBorder? border,
  4. FFBoxShape? boxShape,
  5. @Deprecated('This field is deprecated.') Int64? legacyLegacyBorderColor,
  6. double? legacyBorderWidth,
  7. FFColor? legacyColor,
  8. FFColor? legacyzBorderColor,
  9. FFGradient? gradient,
  10. FFBoxShadow? boxShadow,
  11. FFImage? image,
  12. FFColorValue? colorValue,
  13. FFColorValue? borderColorValue,
  14. FFDoubleValue? borderWidthValue,
})

Implementation

factory FFBoxDecoration({
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyLegacyColor,
  FFBorderRadius? borderRadius,
  FFBorder? border,
  FFBoxShape? boxShape,
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyLegacyBorderColor,
  $core.double? legacyBorderWidth,
  FFColor? legacyColor,
  FFColor? legacyzBorderColor,
  FFGradient? gradient,
  FFBoxShadow? boxShadow,
  FFImage? image,
  FFColorValue? colorValue,
  FFColorValue? borderColorValue,
  FFDoubleValue? borderWidthValue,
}) {
  final result = create();
  if (legacyLegacyColor != null) result.legacyLegacyColor = legacyLegacyColor;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (border != null) result.border = border;
  if (boxShape != null) result.boxShape = boxShape;
  if (legacyLegacyBorderColor != null)
    result.legacyLegacyBorderColor = legacyLegacyBorderColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (legacyzBorderColor != null)
    result.legacyzBorderColor = legacyzBorderColor;
  if (gradient != null) result.gradient = gradient;
  if (boxShadow != null) result.boxShadow = boxShadow;
  if (image != null) result.image = image;
  if (colorValue != null) result.colorValue = colorValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  return result;
}