Richbar<T> constructor

Richbar<T>({
  1. Key? key,
  2. String? title,
  3. double? titleFontSize,
  4. Alignment? titleAlignment = Alignment.topLeft,
  5. FontWeight titleFontWeight = FontWeight.w300,
  6. Color? titleTextColor = defaultTextColor,
  7. String? text = "Dismiss",
  8. double? textFontSize,
  9. bool? showPulse = true,
  10. Color? textColor = defaultTextColor,
  11. VoidCallback? onPressed,
  12. Color? blockInteractionColor = Colors.transparent,
  13. FontWeight? textFontWeight,
  14. Color? backgroundColor = defaultBackgroundColor,
  15. Color? actionColor,
  16. OnTap? onPanDown,
  17. Duration? duration,
  18. bool? isDismissible = false,
  19. double? maxWidth,
  20. EdgeInsets margin = const EdgeInsets.symmetric(),
  21. EdgeInsets padding = const EdgeInsets.all(15),
  22. BorderRadius? borderRadius,
  23. RichbarPosition richbarPosition = RichbarPosition.top,
  24. RichbarDimissibleDirection richbarDimissibleDirection = RichbarDimissibleDirection.vertical,
  25. RicharStyle richbarStyle = RicharStyle.floating,
  26. Curve showCurve = Curves.easeOutCirc,
  27. Curve dismissCurve = Curves.easeOutCirc,
  28. double blur = 0.5,
  29. bool enableBackgroundInteraction = false,
  30. RichbarStatusCallback? onStatusChanged,
  31. RichbarRoute<T?>? richbarRoute,
})

Implementation

Richbar({
  Key? key,
  this.title,
  this.titleFontSize,
  this.titleAlignment = Alignment.topLeft,
  this.titleFontWeight = FontWeight.w300,
  this.titleTextColor = defaultTextColor,
  this.text = "Dismiss",
  this.textFontSize,
  this.showPulse = true,
  this.textColor = defaultTextColor,
  this.onPressed,
  this.blockInteractionColor = Colors.transparent,
  this.textFontWeight,
  this.backgroundColor = defaultBackgroundColor,
  this.actionColor,
  this.onPanDown,
  this.duration,
  this.isDismissible = false,
  this.maxWidth,
  this.margin = const EdgeInsets.symmetric(),
  this.padding = const EdgeInsets.all(15),
  this.borderRadius,
  this.richbarPosition = RichbarPosition.top,
  this.richbarDimissibleDirection = RichbarDimissibleDirection.vertical,
  this.richbarStyle = RicharStyle.floating,
  this.showCurve = Curves.easeOutCirc,
  this.dismissCurve = Curves.easeOutCirc,
  this.blur = 0.5,
  this.enableBackgroundInteraction = false,
  RichbarStatusCallback? onStatusChanged,
  this.richbarRoute,
  // ignore: prefer_initializing_formals
})  : onStatusChanged = onStatusChanged,
      super(key: key) {
  onStatusChanged = onStatusChanged ?? (status) {};
}