ToastMeta.danger constructor
ToastMeta.danger({})
Pre-defined style for the ToastNotificationStyleType.DANGER toast alert.
Implementation
ToastMeta.danger({
Color? backgroundColor,
String? description,
String? title,
Duration? duration,
Function? action,
Map<String, dynamic>? metaData,
icon = const Icon(Icons.warning, color: Colors.redAccent, size: 20),
}) : icon = icon,
title = "Oops!",
description = "",
color = Colors.red.shade50,
duration = const Duration(seconds: 7),
action = action,
style = 'danger',
metaData = metaData,
super();