background static method

DividerPainter background({
  1. bool animationEnabled = DividerPainter.defaultAnimationEnabled,
  2. Duration animationDuration = DividerPainter.defaultAnimationDuration,
  3. Color? color,
  4. Color? highlightedColor,
})

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);
}