LinearProgressIndicator constructor
Creates a linear progress indicator.
The value
argument can be either null (corresponding to an indeterminate
progress indicator) or non-null (corresponding to a determinate progress
indicator). See value
for details.
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 LinearProgressIndicator({
Key key,
double value,
Color backgroundColor,
Animation<Color> valueColor,
String semanticsLabel,
String semanticsValue,
}) : super(
key: key,
value: value,
backgroundColor: backgroundColor,
valueColor: valueColor,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
);