ToastMeta.warning constructor
ToastMeta.warning({})
Pre-defined style for the ToastNotificationStyleType.WARNING
toast alert.
Implementation
ToastMeta.warning({
Color? backgroundColor,
String? description,
String? title,
Duration? duration,
this.action,
this.metaData,
this.icon = const Icon(Icons.error_outline, color: Colors.orange, size: 20),
}) : title = "Oops!",
description = "",
color = Colors.orange.shade50,
duration = const Duration(seconds: 6),
style = 'warning',
super();