createAxisLineStyle method

  1. @override
LineStyle createAxisLineStyle(
  1. GraphicsFactory graphicsFactory,
  2. LineStyleSpec? spec
)

Creates LineStyleSpec for axis line from spec.

Fill missing value(s) with default.

Implementation

@override
LineStyle createAxisLineStyle(
  GraphicsFactory graphicsFactory,
  LineStyleSpec? spec,
) =>
    graphicsFactory.createLinePaint()
      ..color = spec?.color ?? MaterialPalette.gray.shadeDefault
      ..dashPattern = spec?.dashPattern
      ..strokeWidth = spec?.thickness ?? 1;