AwesomeMessage<T extends Object> constructor

AwesomeMessage<T extends Object>({
  1. Key? key,
  2. String? title,
  3. String? message,
  4. Widget? titleText,
  5. Widget? messageText,
  6. Widget? icon,
  7. bool? shouldIconPulse = true,
  8. double? maxWidth,
  9. EdgeInsets margin = const EdgeInsets.all(0.0),
  10. EdgeInsets padding = const EdgeInsets.all(16),
  11. double borderRadius = 0.0,
  12. Color? borderColor,
  13. double borderWidth = 1.0,
  14. Color backgroundColor = const Color(0xFF303030),
  15. Color? leftBarIndicatorColor,
  16. List<BoxShadow>? boxShadows,
  17. Gradient? backgroundGradient,
  18. TextButton? mainButton,
  19. OnTap? onTap,
  20. Duration? duration,
  21. bool isDismissible = true,
  22. AwesomeMessageDismissDirection dismissDirection = AwesomeMessageDismissDirection.VERTICAL,
  23. bool showProgressIndicator = false,
  24. AnimationController? progressIndicatorController,
  25. Color? progressIndicatorBackgroundColor,
  26. Animation<Color>? progressIndicatorValueColor,
  27. AwesomeMessagePosition awesomeMessagePosition = AwesomeMessagePosition.BOTTOM,
  28. AwesomeMessageStyle awesomeMessageStyle = AwesomeMessageStyle.FLOATING,
  29. Curve forwardAnimationCurve = Curves.easeOutCirc,
  30. Curve reverseAnimationCurve = Curves.easeOutCirc,
  31. Duration animationDuration = const Duration(seconds: 1),
  32. AwesomeMessageStatusCallback? onStatusChanged,
  33. double barBlur = 0.0,
  34. double overlayBlur = 0.0,
  35. Color overlayColor = Colors.transparent,
  36. Form? userInputForm,
})

Implementation

AwesomeMessage(
    {Key? key,
    String? title,
    String? message,
    Widget? titleText,
    Widget? messageText,
    Widget? icon,
    bool? shouldIconPulse = true,
    double? maxWidth,
    EdgeInsets margin = const EdgeInsets.all(0.0),
    EdgeInsets padding = const EdgeInsets.all(16),
    double borderRadius = 0.0,
    Color? borderColor,
    double borderWidth = 1.0,
    Color backgroundColor = const Color(0xFF303030),
    Color? leftBarIndicatorColor,
    List<BoxShadow>? boxShadows,
    Gradient? backgroundGradient,
    TextButton? mainButton,
    OnTap? onTap,
    Duration? duration,
    bool isDismissible = true,
    AwesomeMessageDismissDirection dismissDirection = AwesomeMessageDismissDirection.VERTICAL,
    bool showProgressIndicator = false,
    AnimationController? progressIndicatorController,
    Color? progressIndicatorBackgroundColor,
    Animation<Color>? progressIndicatorValueColor,
    AwesomeMessagePosition awesomeMessagePosition = AwesomeMessagePosition.BOTTOM,
    AwesomeMessageStyle awesomeMessageStyle = AwesomeMessageStyle.FLOATING,
    Curve forwardAnimationCurve = Curves.easeOutCirc,
    Curve reverseAnimationCurve = Curves.easeOutCirc,
    Duration animationDuration = const Duration(seconds: 1),
    AwesomeMessageStatusCallback? onStatusChanged,
    double barBlur = 0.0,
    double overlayBlur = 0.0,
    Color overlayColor = Colors.transparent,
    Form? userInputForm})
    : this.title = title,
      this.message = message,
      this.titleText = titleText,
      this.messageText = messageText,
      this.icon = icon,
      this.shouldIconPulse = shouldIconPulse,
      this.maxWidth = maxWidth,
      this.margin = margin,
      this.padding = padding,
      this.borderRadius = borderRadius,
      this.borderColor = borderColor,
      this.borderWidth = borderWidth,
      this.backgroundColor = backgroundColor,
      this.leftBarIndicatorColor = leftBarIndicatorColor,
      this.boxShadows = boxShadows,
      this.backgroundGradient = backgroundGradient,
      this.mainButton = mainButton,
      this.onTap = onTap,
      this.duration = duration,
      this.isDismissible = isDismissible,
      this.dismissDirection = dismissDirection,
      this.showProgressIndicator = showProgressIndicator,
      this.progressIndicatorController = progressIndicatorController,
      this.progressIndicatorBackgroundColor = progressIndicatorBackgroundColor,
      this.progressIndicatorValueColor = progressIndicatorValueColor,
      this.awesomeMessagePosition = awesomeMessagePosition,
      this.awesomeMessageStyle = awesomeMessageStyle,
      this.forwardAnimationCurve = forwardAnimationCurve,
      this.reverseAnimationCurve = reverseAnimationCurve,
      this.animationDuration = animationDuration,
      this.barBlur = barBlur,
      this.overlayBlur = overlayBlur,
      this.overlayColor = overlayColor,
      this.userInputForm = userInputForm,
      super(key: key) {
  this.onStatusChanged = onStatusChanged ?? (status) {};
}