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,
- required Color currencyPrimary,
- required Color secondaryBackgroundLight,
})
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,
required Color currencyPrimary,
required Color secondaryBackgroundLight,
}) : regular = SmallRegular(
style: style.copyWith(fontWeight: regular),
danger: danger,
onBackground: onBackground,
onPrimary: onPrimary,
primary: primary,
secondary: secondary,
secondaryHighlight: secondaryHighlight,
secondaryHighlightDarkest: secondaryHighlightDarkest,
currencyPrimary: currencyPrimary,
secondaryBackgroundLight: secondaryBackgroundLight,
);