LinePattern.vertical constructor

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

Creates a vertical line pattern.

Implementation

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