Richbar<T> constructor

Richbar<T>(
  1. String text, {
  2. Key? key,
  3. Icon? leading,
  4. double opacity = 0.5,
  5. double? maxWidth,
  6. OnTap? onPressed,
  7. BorderRadius? borderRadius,
  8. bool? showPulse = true,
  9. double? textSize = kfontSize,
  10. Duration? duration = kDuration,
  11. Color? textColor = kTextColor,
  12. bool? isDismissible = false,
  13. double backgroundOpaque = 0.5,
  14. Curve showCurve = Curves.easeIn,
  15. Curve dismissCurve = Curves.easeInOut,
  16. TextAlign? textAlignment = TextAlign.left,
  17. Color? backgroundColor = kBackgroundColor,
  18. FontWeight? textFontWeight = FontWeight.normal,
  19. Color? blockInteractionColor = kTransparentColor,
  20. EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(),
  21. EdgeInsetsGeometry? padding = const EdgeInsets.all(8),
  22. RichbarStyle richbarStyle = RichbarStyle.floating,
  23. bool enableBackgroundInteraction = false,
  24. RichbarPosition richbarPosition = RichbarPosition.top,
  25. DismissableDirection? dismissableDirection = DismissableDirection.horizontal,
  26. RichbarStatusCallback? onStatusChanged,
  27. RichbarRoute<T?>? richbarRoute,
})

Implementation

Richbar(
  String this.text, {
  Key? key,
  this.leading,
  this.opacity = 0.5,
  this.maxWidth,
  this.onPressed,
  this.borderRadius,
  this.showPulse = true,
  this.textSize = kfontSize,
  this.duration = kDuration,
  this.textColor = kTextColor,
  this.isDismissible = false,
  this.backgroundOpaque = 0.5,
  this.showCurve = Curves.easeIn,
  this.dismissCurve = Curves.easeInOut,
  this.textAlignment = TextAlign.left,
  this.backgroundColor = kBackgroundColor,
  this.textFontWeight = FontWeight.normal,
  this.blockInteractionColor = kTransparentColor,
  this.margin = const EdgeInsets.symmetric(),
  this.padding = const EdgeInsets.all(8),
  this.richbarStyle = RichbarStyle.floating,
  this.enableBackgroundInteraction = false,
  this.richbarPosition = RichbarPosition.top,
  this.dismissableDirection = DismissableDirection.horizontal,
  this.onStatusChanged,
  this.richbarRoute,
}) : super(key: key) {
  this.onStatusChanged = onStatusChanged ?? (status) {};
}