Small constructor

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

Implementation

Small({
  required TextStyle style,
  required FontWeight regular,
  required Color danger,
  required Color onBackground,
  required Color onPrimary,
  required Color primary,
  required Color secondary,
  required Color secondaryHighlight,
  required Color secondaryHighlightDarkest,
}) : regular = SmallRegular(
        style: style.copyWith(fontWeight: regular),
        danger: danger,
        onBackground: onBackground,
        onPrimary: onPrimary,
        primary: primary,
        secondary: secondary,
        secondaryHighlight: secondaryHighlight,
        secondaryHighlightDarkest: secondaryHighlightDarkest,
      );