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,
  10. required Color currencyPrimary,
  11. required Color secondaryBackgroundLight,
})

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,
  required Color currencyPrimary,
  required Color secondaryBackgroundLight,
}) : regular = SmallRegular(
       style: style.copyWith(fontWeight: regular),
       danger: danger,
       onBackground: onBackground,
       onPrimary: onPrimary,
       primary: primary,
       secondary: secondary,
       secondaryHighlight: secondaryHighlight,
       secondaryHighlightDarkest: secondaryHighlightDarkest,
       currencyPrimary: currencyPrimary,
       secondaryBackgroundLight: secondaryBackgroundLight,
     );