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