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,
this.action,
this.metaData,
this.icon = const Icon(Icons.warning, color: Colors.redAccent, size: 20),
}) : title = "Oops!",
description = "",
color = Colors.red.shade50,
duration = const Duration(seconds: 7),
style = 'danger',
super();