copyWith method

CardTitleConfig copyWith({
  1. EdgeInsets? cardTitlePadding,
  2. BaseTextStyle? titleWithHeightTextStyle,
  3. BaseTextStyle? titleTextStyle,
  4. BaseTextStyle? subtitleTextStyle,
  5. BaseTextStyle? detailTextStyle,
  6. BaseTextStyle? accessoryTextStyle,
  7. PlaceholderAlignment? alignment,
  8. Color? cardBackgroundColor,
})

Implementation

CardTitleConfig copyWith({
  EdgeInsets? cardTitlePadding,
  BaseTextStyle? titleWithHeightTextStyle,
  BaseTextStyle? titleTextStyle,
  BaseTextStyle? subtitleTextStyle,
  BaseTextStyle? detailTextStyle,
  BaseTextStyle? accessoryTextStyle,
  PlaceholderAlignment? alignment,
  Color? cardBackgroundColor,
}) {
  return CardTitleConfig(
    cardTitlePadding: cardTitlePadding ?? _cardTitlePadding,
    titleWithHeightTextStyle:
        titleWithHeightTextStyle ?? _titleWithHeightTextStyle,
    titleTextStyle: titleTextStyle ?? _titleTextStyle,
    subtitleTextStyle: subtitleTextStyle ?? _subtitleTextStyle,
    detailTextStyle: detailTextStyle ?? _detailTextStyle,
    accessoryTextStyle: accessoryTextStyle ?? _accessoryTextStyle,
    alignment: alignment ?? _alignment,
    cardBackgroundColor: cardBackgroundColor ?? _cardBackgroundColor,
  );
}