FToastStyle.inherit constructor

FToastStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. 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),
    );