ModProgressConfig class

Configuration for the progress widget appearance

Constructors

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

Properties

backgroundColor → Color?
Background color of the container
final
barrierColor → Color
Barrier color when showBarrier is true
final
barrierDismissible → bool
Whether clicking outside dismisses the progress
final
borderColor → Color?
Border color
final
borderRadius → double
Border radius
final
borderWidth → double
Border width
final
boxShadow → List<BoxShadow>?
Box shadow for the container
final
circularSize → double
Size of circular progress indicator
final
circularStrokeWidth → double
Stroke width for circular progress
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Height of the progress container (for linear type)
final
icon → IconData?
Icon to show (optional, for completed/error states)
final
iconColor → Color?
Icon color
final
iconSize → double
Icon size
final
initialProgress → double?
Initial progress value (0.0 to 1.0), null for indeterminate
final
linearHeight → double
Height of linear progress bar
final
margin → EdgeInsets
Margin from screen edges
final
padding → EdgeInsets
Padding inside the container
final
position → ModProgressPosition
Position on screen
final
progressBackgroundColor → Color?
Progress background color (track color)
final
progressColor → Color?
Progress indicator color
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showBarrier → bool
Whether to show barrier (dim background)
final
showCloseButton → bool
Whether to show close button
final
subtitle → String?
Subtitle/message text (optional)
final
subtitleColor → Color?
Text color for subtitle
final
subtitleFontSize → double
Subtitle font size
final
title → String?
Title text (optional)
final
titleColor → Color?
Text color for title
final
titleFontSize → double
Title font size
final
type → ModProgressType
Type of progress indicator (circular or linear)
final
width → double?
Width of the progress container
final

Methods

copyWith({ModProgressPosition? position, ModProgressType? type, String? title, String? subtitle, double? initialProgress, Color? backgroundColor, Color? borderColor, double? borderWidth, double? borderRadius, Color? progressColor, Color? progressBackgroundColor, Color? titleColor, Color? subtitleColor, double? titleFontSize, double? subtitleFontSize, double? width, double? height, double? circularSize, double? circularStrokeWidth, double? linearHeight, EdgeInsets? padding, EdgeInsets? margin, bool? showCloseButton, bool? barrierDismissible, bool? showBarrier, Color? barrierColor, List<BoxShadow>? boxShadow, IconData? icon, Color? iconColor, double? iconSize}) → ModProgressConfig
Creates a copy with modified values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited