fallbackTypography function

SleekTypographyData fallbackTypography(
  1. {@required Color bodyColor,
  2. @required Color linkColor,
  3. @required Color titleColor,
  4. @required Color codeColor,
  5. @required Color blockquoteColor,
  6. @required Color blockquoteBackgroundColor,
  7. @required Color codeBackgroundColor,
  8. @required Color blockquoteBorderColor,
  9. @required Color subtitleColor,
  10. @required Color bodyLightColor,
  11. @required Color buttonColor}
)

Implementation

SleekTypographyData fallbackTypography({
  @required Color bodyColor,
  @required Color linkColor,
  @required Color titleColor,
  @required Color codeColor,
  @required Color blockquoteColor,
  @required Color blockquoteBackgroundColor,
  @required Color codeBackgroundColor,
  @required Color blockquoteBorderColor,
  @required Color subtitleColor,
  @required Color bodyLightColor,
  @required Color buttonColor,
}) {
  return SleekTypographyData(
    sizes: sleekDefaultTypographySizes,
    weights: sleekDefaultTypographyWeights,
    families: sleekDefaultTypographyPlatformFamilies(),
    styles: fallbackStyles(
      bodyColor: bodyColor,
      linkColor: linkColor,
      codeBackgroundColor: codeBackgroundColor,
      blockquoteColor: blockquoteColor,
      blockquoteBackgroundColor: blockquoteBackgroundColor,
      blockquoteBorderColor: blockquoteBorderColor,
      titleColor: titleColor,
      subtitleColor: subtitleColor,
      bodyLightColor: bodyLightColor,
      buttonColor: buttonColor,
      codeColor: codeColor,
    ),
  );
}