NormalRegular constructor

NormalRegular({
  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 secondaryHighlightDarkest,
})

Implementation

NormalRegular({
  required TextStyle style,
  required Color danger,
  required Color onBackground,
  required Color onPrimary,
  required Color primary,
  required Color secondary,
  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),
      secondaryHighlightDarkest =
          style.copyWith(color: secondaryHighlightDarkest);