BsProgress.single constructor
BsProgress.single({})
Convenience constructor to create a BsProgress with a single progress segment.
Implementation
factory BsProgress.single({
Key? key,
required double value,
String? label,
BsVariant? variant = BsVariant.primary,
bool striped = false,
bool animated = false,
double height = 16.0,
Color? backgroundColor,
Color? barColor,
Color? textColor,
BorderRadius? borderRadius,
}) {
return BsProgress(
key: key,
height: height,
backgroundColor: backgroundColor,
borderRadius: borderRadius,
bars: [
BsProgressBar(
value: value,
label: label,
variant: variant,
striped: striped,
animated: animated,
color: barColor,
textColor: textColor,
),
],
);
}