error static method
Implementation
static Flushbar error({
required String title,
String? description,
EdgeInsets? margin
}) {
return baseToast(
title: TodayText(
title,
style: TodayTextStyle.tdsFontRegularPlus,
color: TodayTextColor.fullWhite,
),
description: description != null
? TodayText(
description,
style: TodayTextStyle.tdsFontSmall,
color: TodayTextColor.fullWhite,
)
: null,
icon: const TodayIcon(TodaySvgIcon.statusError),
backgroundColor: const Color.fromRGBO(220, 38, 38, 1),
duration: 5000,
margin: margin,
);
}