LinePattern.horizontal constructor

LinePattern.horizontal({
  1. double strokeWidth = 2,
  2. double spacing = 8,
  3. Color backgroundColor = const Color(0x00000000),
  4. Color foregroundColor = const Color(0xFF000000),
})

Creates a horizontal line pattern.

Implementation

factory LinePattern.horizontal({
  double strokeWidth = 2,
  double spacing = 8,
  Color backgroundColor = const Color(0x00000000),
  Color foregroundColor = const Color(0xFF000000),
}) {
  return LinePattern(
    strokeWidth: strokeWidth,
    spacing: spacing,
    angle: 0,
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
  );
}