background static method
Builds a divider painter to set the background color.
Implementation
static DividerPainter background(
{bool animationEnabled = DividerPainter.defaultAnimationEnabled,
Duration animationDuration = DividerPainter.defaultAnimationDuration,
Color? color,
Color? highlightedColor}) {
return DividerPainter(
animationEnabled: animationEnabled,
animationDuration: animationDuration,
backgroundColor: color,
highlightedBackgroundColor: highlightedColor);
}