Medium constructor

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

Implementation

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