copyWith method

NativeContentStyle copyWith({
  1. Color? titleColor,
  2. double? titleFontSize,
  3. Color? textColor,
  4. double? contentFontSize,
})

Creates a copy of this content style with the given fields replaced.

Implementation

NativeContentStyle copyWith({
  Color? titleColor,
  double? titleFontSize,
  Color? textColor,
  double? contentFontSize,
}) {
  return NativeContentStyle(
    titleColor: titleColor ?? this.titleColor,
    titleFontSize: titleFontSize ?? this.titleFontSize,
    textColor: textColor ?? this.textColor,
    contentFontSize: contentFontSize ?? this.contentFontSize,
  );
}