FFBoxShadow constructor

FFBoxShadow({
  1. double? legacyBlurRadius,
  2. FFColor? legacyColor,
  3. double? legacyDx,
  4. double? legacyDy,
  5. double? legacySpreadRadius,
  6. FFDoubleValue? blurRadiusValue,
  7. FFColorValue? colorValue,
  8. FFDoubleValue? dxValue,
  9. FFDoubleValue? dyValue,
  10. FFDoubleValue? spreadRadiusValue,
  11. FFIdentifier? themeShadowToken,
})

Implementation

factory FFBoxShadow({
  $core.double? legacyBlurRadius,
  FFColor? legacyColor,
  $core.double? legacyDx,
  $core.double? legacyDy,
  $core.double? legacySpreadRadius,
  FFDoubleValue? blurRadiusValue,
  FFColorValue? colorValue,
  FFDoubleValue? dxValue,
  FFDoubleValue? dyValue,
  FFDoubleValue? spreadRadiusValue,
  FFIdentifier? themeShadowToken,
}) {
  final result = create();
  if (legacyBlurRadius != null) result.legacyBlurRadius = legacyBlurRadius;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (legacyDx != null) result.legacyDx = legacyDx;
  if (legacyDy != null) result.legacyDy = legacyDy;
  if (legacySpreadRadius != null)
    result.legacySpreadRadius = legacySpreadRadius;
  if (blurRadiusValue != null) result.blurRadiusValue = blurRadiusValue;
  if (colorValue != null) result.colorValue = colorValue;
  if (dxValue != null) result.dxValue = dxValue;
  if (dyValue != null) result.dyValue = dyValue;
  if (spreadRadiusValue != null) result.spreadRadiusValue = spreadRadiusValue;
  if (themeShadowToken != null) result.themeShadowToken = themeShadowToken;
  return result;
}