error static method

Flushbar error({
  1. required String title,
  2. String? description,
})

Implementation

static Flushbar error({
  required String title,
  String? description,
}) {
  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: 3000,
  );
}