ToastMeta.success constructor
ToastMeta.success({})
Pre-defined style for the ToastNotificationStyleType.SUCCESS
toast alert.
Implementation
ToastMeta.success(
{Color? backgroundColor,
String? description,
String? title,
Duration? duration,
this.action,
this.metaData,
this.icon = const Icon(Icons.check, color: Colors.green, size: 20)})
: title = title ?? "Success",
description = description ?? "",
color = backgroundColor ?? Colors.green.shade50,
duration = duration ?? const Duration(seconds: 5),
style = 'success',
super();