ToastMeta.info constructor

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

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

Implementation

ToastMeta.info({
  Color? backgroundColor,
  String? description,
  String? title,
  Duration? duration,
  this.action,
  this.metaData,
  this.icon = const Icon(Icons.info, color: Colors.teal, size: 20),
})  : title = "Info",
      description = "",
      color = Colors.teal.shade50,
      duration = const Duration(seconds: 5),
      style = 'info',
      super();