copyWith method

WiredashTextTheme copyWith({
  1. TextStyle? headlineMedium,
  2. TextStyle? headlineSmall,
  3. TextStyle? appbarTitle,
  4. TextStyle? title,
  5. TextStyle? button,
  6. TextStyle? bodyMedium,
  7. TextStyle? bodySmall,
  8. TextStyle? body2Medium,
  9. TextStyle? body2Small,
  10. TextStyle? caption,
  11. TextStyle? input,
  12. TextStyle? inputError,
})

Implementation

WiredashTextTheme copyWith({
  TextStyle? headlineMedium,
  TextStyle? headlineSmall,
  TextStyle? appbarTitle,
  TextStyle? title,
  TextStyle? button,
  TextStyle? bodyMedium,
  TextStyle? bodySmall,
  TextStyle? body2Medium,
  TextStyle? body2Small,
  TextStyle? caption,
  TextStyle? input,
  TextStyle? inputError,
}) {
  return WiredashTextTheme(
    headlineMedium: headlineMedium ?? this.headlineMedium,
    headlineSmall: headlineSmall ?? this.headlineSmall,
    appbarTitle: appbarTitle ?? this.appbarTitle,
    title: title ?? this.title,
    button: button ?? this.button,
    bodyMedium: bodyMedium ?? this.bodyMedium,
    bodySmall: bodySmall ?? this.bodySmall,
    body2Medium: body2Medium ?? this.body2Medium,
    body2Small: body2Small ?? this.body2Small,
    caption: caption ?? this.caption,
    input: input ?? this.input,
    inputError: inputError ?? this.inputError,
  );
}