SmallRegular constructor

SmallRegular({
  1. required TextStyle style,
  2. required Color danger,
  3. required Color onBackground,
  4. required Color onPrimary,
  5. required Color primary,
  6. required Color secondary,
  7. required Color secondaryHighlight,
  8. required Color secondaryHighlightDarkest,
  9. required Color currencyPrimary,
  10. required Color secondaryBackgroundLight,
})

Implementation

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