copyWith method

StreamTextTheme copyWith({
  1. Brightness brightness = Brightness.light,
  2. TextStyle? body,
  3. TextStyle? title,
  4. TextStyle? headlineBold,
  5. TextStyle? headline,
  6. TextStyle? bodyBold,
  7. TextStyle? footnoteBold,
  8. TextStyle? footnote,
  9. TextStyle? captionBold,
})

Copy with theme

Implementation

StreamTextTheme copyWith({
  Brightness brightness = Brightness.light,
  TextStyle? body,
  TextStyle? title,
  TextStyle? headlineBold,
  TextStyle? headline,
  TextStyle? bodyBold,
  TextStyle? footnoteBold,
  TextStyle? footnote,
  TextStyle? captionBold,
}) =>
    brightness == Brightness.light
        ? StreamTextTheme.light(
            body: body ?? this.body,
            title: title ?? this.title,
            headlineBold: headlineBold ?? this.headlineBold,
            headline: headline ?? this.headline,
            bodyBold: bodyBold ?? this.bodyBold,
            footnoteBold: footnoteBold ?? this.footnoteBold,
            footnote: footnote ?? this.footnote,
            captionBold: captionBold ?? this.captionBold,
          )
        : StreamTextTheme.dark(
            body: body ?? this.body,
            title: title ?? this.title,
            headlineBold: headlineBold ?? this.headlineBold,
            headline: headline ?? this.headline,
            bodyBold: bodyBold ?? this.bodyBold,
            footnoteBold: footnoteBold ?? this.footnoteBold,
            footnote: footnote ?? this.footnote,
            captionBold: captionBold ?? this.captionBold,
          );