success static method
Implementation
static Flushbar success({
required String title,
String? description,
Function? onUndo,
}) {
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.statusSuccess),
onUndo: onUndo,
backgroundColor: const Color.fromRGBO(23, 23, 23, 1),
duration: 3000,
);
}