MediumRegular constructor

MediumRegular({
  1. required TextStyle style,
  2. required Color onBackground,
  3. required Color onPrimary,
  4. required Color primary,
  5. required Color primaryHighlightLightest,
  6. required Color secondary,
})

Implementation

MediumRegular({
  required TextStyle style,
  required Color onBackground,
  required Color onPrimary,
  required Color primary,
  required Color primaryHighlightLightest,
  required Color secondary,
})  : onBackground = style.copyWith(color: onBackground),
      onPrimary = style.copyWith(color: onPrimary),
      primary = style.copyWith(color: primary),
      primaryHighlightLightest =
          style.copyWith(color: primaryHighlightLightest),
      secondary = style.copyWith(color: secondary);