FlashBar<T> constructor

const FlashBar<T>({
  1. Key? key,
  2. required FlashController<T> controller,
  3. FlashPosition position = FlashPosition.bottom,
  4. FlashBehavior? behavior = FlashBehavior.fixed,
  5. List<FlashDismissDirection> dismissDirections = FlashDismissDirection.values,
  6. Curve forwardAnimationCurve = Curves.easeOut,
  7. Curve reverseAnimationCurve = Curves.fastOutSlowIn,
  8. EdgeInsets? margin,
  9. Color? backgroundColor,
  10. double? elevation,
  11. Color? shadowColor,
  12. Color? surfaceTintColor,
  13. ShapeBorder? shape,
  14. Clip clipBehavior = Clip.none,
  15. Color? iconColor,
  16. TextStyle? titleTextStyle,
  17. TextStyle? contentTextStyle,
  18. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  19. Curve insetAnimationCurve = Curves.fastOutSlowIn,
  20. EdgeInsets? padding,
  21. Widget? title,
  22. required Widget content,
  23. Widget? icon,
  24. bool shouldIconPulse = true,
  25. Color? indicatorColor,
  26. Widget? primaryAction,
  27. List<Widget>? actions,
  28. bool showProgressIndicator = false,
  29. Animation<double>? progressIndicatorValue,
  30. Color? progressIndicatorBackgroundColor,
  31. Animation<Color>? progressIndicatorValueColor,
  32. bool useSafeArea = true,
  33. TransitionBuilder? builder,
})

Implementation

const FlashBar({
  super.key,
  required this.controller,
  this.position = FlashPosition.bottom,
  this.behavior = FlashBehavior.fixed,
  this.dismissDirections = FlashDismissDirection.values,
  this.forwardAnimationCurve = Curves.easeOut,
  this.reverseAnimationCurve = Curves.fastOutSlowIn,
  this.margin,
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.clipBehavior = Clip.none,
  this.iconColor,
  this.titleTextStyle,
  this.contentTextStyle,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.fastOutSlowIn,
  this.padding,
  this.title,
  required this.content,
  this.icon,
  this.shouldIconPulse = true,
  this.indicatorColor,
  this.primaryAction,
  this.actions,
  this.showProgressIndicator = false,
  this.progressIndicatorValue,
  this.progressIndicatorBackgroundColor,
  this.progressIndicatorValueColor,
  this.useSafeArea = true,
  this.builder,
});