buildCustom method
LinearProgressIndicator
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
LinearProgressIndicator buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
final valueColorDecoded = _decodeValueColor(
value: model.valueColor,
);
return LinearProgressIndicator(
backgroundColor: model.backgroundColor,
borderRadius: model.borderRadius,
color: model.color,
key: key,
minHeight: model.minHeight,
semanticsLabel: model.semanticsLabel,
semanticsValue: model.semanticsValue,
value: model.value,
valueColor: valueColorDecoded,
);
}