info static method

String info(
  1. String message, {
  2. String? title,
  3. Duration? duration,
  4. ToastrPosition? position,
  5. ToastrShowMethod? showMethod,
  6. ToastrHideMethod? hideMethod,
  7. Duration? showDuration,
  8. Duration? hideDuration,
  9. bool? showProgressBar,
  10. bool? showCloseButton,
  11. bool? preventDuplicates,
  12. VoidCallback? onTap,
  13. VoidCallback? onDismiss,
  14. Widget? content,
  15. double? maxWidth,
  16. EdgeInsets? margin,
  17. Color? accentColor,
  18. BoxDecoration? containerDecoration,
  19. ToastrTheme? theme,
  20. ToastrAction? action,
  21. bool? enableHapticFeedback,
  22. HapticFeedbackType? hapticFeedbackType,
  23. SwipeDismissDirection? swipeDismissDirection,
  24. Widget enterAnimationBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  25. Widget exitAnimationBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  26. bool? compact,
  27. BorderRadius? borderRadius,
  28. bool? avoidKeyboard,
  29. double? stackOverlap,
  30. bool? showCircularProgress,
  31. double? gutter,
  32. ToastrIconTheme? iconTheme,
})

Show an info toastr with the given message.

Returns the toast ID.

Implementation

static String info(
  String message, {
  String? title,
  Duration? duration,
  ToastrPosition? position,
  ToastrShowMethod? showMethod,
  ToastrHideMethod? hideMethod,
  Duration? showDuration,
  Duration? hideDuration,
  bool? showProgressBar,
  bool? showCloseButton,
  bool? preventDuplicates,
  VoidCallback? onTap,
  VoidCallback? onDismiss,
  Widget? content,
  double? maxWidth,
  EdgeInsets? margin,
  Color? accentColor,
  BoxDecoration? containerDecoration,
  ToastrTheme? theme,
  ToastrAction? action,
  bool? enableHapticFeedback,
  HapticFeedbackType? hapticFeedbackType,
  SwipeDismissDirection? swipeDismissDirection,
  Widget Function(Widget child, Animation<double> animation)? enterAnimationBuilder,
  Widget Function(Widget child, Animation<double> animation)? exitAnimationBuilder,
  bool? compact,
  BorderRadius? borderRadius,
  bool? avoidKeyboard,
  double? stackOverlap,
  bool? showCircularProgress,
  double? gutter,
  ToastrIconTheme? iconTheme,
}) =>
    _showWithOptions(
      ToastrType.info,
      message,
      title: title,
      duration: duration,
      position: position,
      showMethod: showMethod,
      hideMethod: hideMethod,
      showDuration: showDuration,
      hideDuration: hideDuration,
      showProgressBar: showProgressBar,
      showCloseButton: showCloseButton,
      preventDuplicates: preventDuplicates,
      onTap: onTap,
      onDismiss: onDismiss,
      content: content,
      maxWidth: maxWidth,
      margin: margin,
      accentColor: accentColor,
      containerDecoration: containerDecoration,
      theme: theme,
      action: action,
      enableHapticFeedback: enableHapticFeedback,
      hapticFeedbackType: hapticFeedbackType,
      swipeDismissDirection: swipeDismissDirection,
      enterAnimationBuilder: enterAnimationBuilder,
      exitAnimationBuilder: exitAnimationBuilder,
      compact: compact,
      borderRadius: borderRadius,
      avoidKeyboard: avoidKeyboard,
      stackOverlap: stackOverlap,
      showCircularProgress: showCircularProgress,
      gutter: gutter,
      iconTheme: iconTheme,
    );