dashed static method

DividerPainter dashed({
  1. double size = 10,
  2. double gap = 5,
  3. Color? backgroundColor,
  4. Color? highlightedBackgroundColor,
  5. bool animationEnabled = DividerPainter.defaultAnimationEnabled,
  6. Duration animationDuration = DividerPainter.defaultAnimationDuration,
  7. Color color = Colors.black,
  8. Color? highlightedColor,
  9. StrokeCap strokeCap = StrokeCap.square,
  10. double thickness = 1,
  11. double? highlightedThickness,
  12. double? highlightedGap,
})

Builds a dashed divider painter.

Implementation

static DividerPainter dashed(
    {double size = 10,
    double gap = 5,
    Color? backgroundColor,
    Color? highlightedBackgroundColor,
    bool animationEnabled = DividerPainter.defaultAnimationEnabled,
    Duration animationDuration = DividerPainter.defaultAnimationDuration,
    Color color = Colors.black,
    Color? highlightedColor,
    StrokeCap strokeCap = StrokeCap.square,
    double thickness = 1,
    double? highlightedThickness,
    double? highlightedGap}) {
  return _DashedDividerPainter(
      size: size,
      gap: gap,
      backgroundColor: backgroundColor,
      highlightedBackgroundColor: highlightedBackgroundColor,
      animationEnabled: animationEnabled,
      animationDuration: animationDuration,
      color: color,
      highlightedColor: highlightedColor,
      strokeCap: strokeCap,
      thickness: thickness,
      highlightedThickness: highlightedThickness,
      highlightedGap: highlightedGap);
}