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