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,
})

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,
})  : 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);