ModProgressConfig constructor

const ModProgressConfig({
  1. ModProgressPosition position = ModProgressPosition.topRight,
  2. ModProgressType type = ModProgressType.circular,
  3. String? title,
  4. String? subtitle,
  5. double? initialProgress,
  6. Color? backgroundColor,
  7. Color? borderColor,
  8. double borderWidth = 1.0,
  9. double borderRadius = 8.0,
  10. Color? progressColor,
  11. Color? progressBackgroundColor,
  12. Color? titleColor,
  13. Color? subtitleColor,
  14. double titleFontSize = 14.0,
  15. double subtitleFontSize = 12.0,
  16. double? width = 300.0,
  17. double? height,
  18. double circularSize = 24.0,
  19. double circularStrokeWidth = 3.0,
  20. double linearHeight = 4.0,
  21. EdgeInsets padding = const EdgeInsets.all(16.0),
  22. EdgeInsets margin = const EdgeInsets.all(16.0),
  23. bool showCloseButton = true,
  24. bool barrierDismissible = false,
  25. bool showBarrier = false,
  26. Color barrierColor = Colors.black26,
  27. List<BoxShadow>? boxShadow,
  28. IconData? icon,
  29. Color? iconColor,
  30. double iconSize = 20.0,
})

Implementation

const ModProgressConfig({
  this.position = ModProgressPosition.topRight,
  this.type = ModProgressType.circular,
  this.title,
  this.subtitle,
  this.initialProgress,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth = 1.0,
  this.borderRadius = 8.0,
  this.progressColor,
  this.progressBackgroundColor,
  this.titleColor,
  this.subtitleColor,
  this.titleFontSize = 14.0,
  this.subtitleFontSize = 12.0,
  this.width = 300.0,
  this.height,
  this.circularSize = 24.0,
  this.circularStrokeWidth = 3.0,
  this.linearHeight = 4.0,
  this.padding = const EdgeInsets.all(16.0),
  this.margin = const EdgeInsets.all(16.0),
  this.showCloseButton = true,
  this.barrierDismissible = false,
  this.showBarrier = false,
  this.barrierColor = Colors.black26,
  this.boxShadow,
  this.icon,
  this.iconColor,
  this.iconSize = 20.0,
});