FToastStyle.inherit constructor
FToastStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FToastStyle that inherits its properties.
Implementation
FToastStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
decoration: BoxDecoration(
border: Border.all(color: colors.border),
borderRadius: style.borderRadius,
color: colors.background,
),
iconStyle: IconThemeData(color: colors.primary, size: 18),
titleTextStyle: typography.sm.copyWith(color: colors.primary, fontWeight: FontWeight.w500),
titleSpacing: 5,
descriptionTextStyle: typography.sm.copyWith(color: colors.mutedForeground, overflow: TextOverflow.ellipsis),
);