copyUpdate method

HubbleTypography copyUpdate({
  1. Color textColor = Colors.black,
})

Implementation

HubbleTypography copyUpdate({Color textColor = Colors.black}) {
  return HubbleTypography(
    h1: h1.copyWith(color: textColor),
    h2: h2.copyWith(color: textColor),
    h3: h3.copyWith(color: textColor),
    h4: h4.copyWith(color: textColor),
    h5: h5.copyWith(color: textColor),
    subtitle1: subtitle1.copyWith(color: textColor),
    subtitle2: subtitle2.copyWith(color: textColor),
    subtitle3: subtitle3.copyWith(color: textColor),
    body1: body1.copyWith(color: textColor),
    body2: body2.copyWith(color: textColor),
    body3: body3.copyWith(color: textColor),
    body4: body4.copyWith(color: textColor),
    body5: body5.copyWith(color: textColor),
    label1: label1.copyWith(color: textColor),
    label2: label2.copyWith(color: textColor),
    label3: label3.copyWith(color: textColor),
    navigation: navigation.copyWith(color: textColor),
    buttonSmall: buttonSmall.copyWith(color: textColor),
    buttonMedium: buttonMedium.copyWith(color: textColor),
    buttonLarge: buttonLarge.copyWith(color: textColor),
  );
}