Smaller constructor

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

Implementation

Smaller({
  required TextStyle style,
  required FontWeight bold,
  required FontWeight regular,
  required Color onPrimary,
  required Color secondary,
  required Color onBackground,
  required Color primary,
})  : bold = SmallerBold(
        style: style.copyWith(fontWeight: bold),
        onPrimary: onPrimary,
        secondary: secondary,
      ),
      regular = SmallerRegular(
        style: style.copyWith(fontWeight: regular),
        onBackground: onBackground,
        secondary: secondary,
        onPrimary: onPrimary,
        primary: primary,
      );