RefreshProgressIndicator constructor
const
RefreshProgressIndicator({})
Creates a refresh progress indicator.
Rather than creating a refresh progress indicator directly, consider using a RefreshIndicator together with a Scrollable widget.
The value
argument can either be null for an indeterminate
progress indicator, or a non-null value between 0.0 and 1.0 for a
determinate progress indicator.
Accessibility
The semanticsLabel
can be used to identify the purpose of this progress
bar for screen reading software. The semanticsValue
property may be used
for determinate progress indicators to indicate how much progress has been made.
Implementation
const RefreshProgressIndicator({
Key? key,
double? value,
Color? backgroundColor,
Color? color,
Animation<Color?>? valueColor,
double?
strokeWidth, // Different default than CurvedCircularProgressIndicator.
String? semanticsLabel,
String? semanticsValue,
}) : super(
key: key,
value: value,
backgroundColor: backgroundColor,
color: color,
valueColor: valueColor,
strokeWidth: strokeWidth ?? 4.0,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
);