FFChipStyle constructor

FFChipStyle({
  1. FFColor? legacyBackgroundColor,
  2. FFText? textStyle,
  3. FFColor? legacyIconColor,
  4. double? legacyIconSize,
  5. FFPadding? labelPadding,
  6. double? legacyElevation,
  7. FFColor? legacyBorderColor,
  8. double? legacyBorderWidth,
  9. FFBorderRadius? borderRadius,
  10. FFColorValue? backgroundColorValue,
  11. FFColorValue? iconColorValue,
  12. FFDoubleValue? iconSizeValue,
  13. FFDoubleValue? elevationValue,
  14. FFColorValue? borderColorValue,
  15. FFDoubleValue? borderWidthValue,
})

Implementation

factory FFChipStyle({
  FFColor? legacyBackgroundColor,
  FFText? textStyle,
  FFColor? legacyIconColor,
  $core.double? legacyIconSize,
  FFPadding? labelPadding,
  $core.double? legacyElevation,
  FFColor? legacyBorderColor,
  $core.double? legacyBorderWidth,
  FFBorderRadius? borderRadius,
  FFColorValue? backgroundColorValue,
  FFColorValue? iconColorValue,
  FFDoubleValue? iconSizeValue,
  FFDoubleValue? elevationValue,
  FFColorValue? borderColorValue,
  FFDoubleValue? borderWidthValue,
}) {
  final result = create();
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (textStyle != null) result.textStyle = textStyle;
  if (legacyIconColor != null) result.legacyIconColor = legacyIconColor;
  if (legacyIconSize != null) result.legacyIconSize = legacyIconSize;
  if (labelPadding != null) result.labelPadding = labelPadding;
  if (legacyElevation != null) result.legacyElevation = legacyElevation;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (iconColorValue != null) result.iconColorValue = iconColorValue;
  if (iconSizeValue != null) result.iconSizeValue = iconSizeValue;
  if (elevationValue != null) result.elevationValue = elevationValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  return result;
}