FToastStyles.inherit constructor
FToastStyles.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FToastStyles that inherits its properties.
Implementation
factory FToastStyles.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) {
final primary = FToastStyle.inherit(colors: colors, typography: typography, style: style, touch: touch);
return FToastStyles(
FVariants.from(
primary,
variants: {
[.primary]: const .delta(),
[.destructive]: .delta(
iconStyle: .delta(color: colors.destructive),
titleTextStyle: .delta(color: colors.destructive),
descriptionTextStyle: .delta(color: colors.destructive),
),
},
),
);
}