loading static method
Implementation
static GlobalKey<FlushbarState> loading(
{required BuildContext context,
required String title,
required Widget icon,
String? description,
Function? onUndo,
String? undoText,
int? duration}) {
GlobalKey<FlushbarState> key = GlobalKey();
Flushbar flushbar = baseToast(
key: key,
title: TodayText(
title,
style: TodayTextStyle.tdsFontRegularPlus,
color: TodayTextColor.fullWhite,
),
description: description != null
? TodayText(
description,
style: TodayTextStyle.tdsFontSmall,
color: TodayTextColor.fullWhite,
)
: null,
icon: icon,
onUndo: onUndo,
undoText: undoText,
backgroundColor: const Color.fromRGBO(23, 23, 23, 1),
duration: duration,
isDismissible: false,
);
flushbar.show(context);
return key;
}