FFBoxDecoration constructor
FFBoxDecoration({
- @Deprecated('This field is deprecated.') Int64? legacyLegacyColor,
- FFBorderRadius? borderRadius,
- FFBorder? border,
- FFBoxShape? boxShape,
- @Deprecated('This field is deprecated.') Int64? legacyLegacyBorderColor,
- double? legacyBorderWidth,
- FFColor? legacyColor,
- FFColor? legacyzBorderColor,
- FFGradient? gradient,
- FFBoxShadow? boxShadow,
- FFImage? image,
- FFColorValue? colorValue,
- FFColorValue? borderColorValue,
- 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;
}