Normal constructor

Normal({
  1. required TextStyle style,
  2. required FontWeight bold,
  3. required FontWeight regular,
  4. required Color onBackground,
  5. required Color onPrimary,
  6. required Color danger,
  7. required Color primary,
  8. required Color secondary,
  9. required Color secondaryHighlightDarkest,
})

Implementation

Normal({
  required TextStyle style,
  required FontWeight bold,
  required FontWeight regular,
  required Color onBackground,
  required Color onPrimary,
  required Color danger,
  required Color primary,
  required Color secondary,
  required Color secondaryHighlightDarkest,
})  : bold = NormalBold(
        style: style.copyWith(fontWeight: bold),
        onBackground: onBackground,
        onPrimary: onPrimary,
      ),
      regular = NormalRegular(
        style: style.copyWith(fontWeight: regular),
        danger: danger,
        onBackground: onBackground,
        onPrimary: onPrimary,
        primary: primary,
        secondary: secondary,
        secondaryHighlightDarkest: secondaryHighlightDarkest,
      );