Small constructor
Small({ - required TextStyle style,
- required FontWeight regular,
- required Color danger,
- required Color onBackground,
- required Color onPrimary,
- required Color primary,
- required Color secondary,
- required Color secondaryHighlight,
- required Color secondaryHighlightDarkest,
})
Implementation
Small({
required TextStyle style,
required FontWeight regular,
required Color danger,
required Color onBackground,
required Color onPrimary,
required Color primary,
required Color secondary,
required Color secondaryHighlight,
required Color secondaryHighlightDarkest,
}) : regular = SmallRegular(
style: style.copyWith(fontWeight: regular),
danger: danger,
onBackground: onBackground,
onPrimary: onPrimary,
primary: primary,
secondary: secondary,
secondaryHighlight: secondaryHighlight,
secondaryHighlightDarkest: secondaryHighlightDarkest,
);