ToastMeta.warning constructor

ToastMeta.warning({
  1. Color? backgroundColor,
  2. String? description,
  3. String? title,
  4. Duration? duration,
  5. Function? action,
  6. Map<String, dynamic>? metaData,
  7. dynamic icon = const Icon(Icons.error_outline, color: Colors.orange, size: 20),
})

Pre-defined style for the ToastNotificationStyleType.WARNING toast alert.

Implementation

ToastMeta.warning({
  Color? backgroundColor,
  String? description,
  String? title,
  Duration? duration,
  Function? action,
  Map<String, dynamic>? metaData,
  icon = const Icon(Icons.error_outline, color: Colors.orange, size: 20),
})  : icon = icon,
      title = "Oops!",
      description = "",
      color = Colors.orange.shade50,
      duration = const Duration(seconds: 6),
      action = action,
      style = 'warning',
      metaData = metaData,
      super();