createTickLineStyle method

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

Creates LineStyleSpec for tick lines from spec.

Fill missing value(s) with default.

Implementation

@override
LineStyle createTickLineStyle(
    GraphicsFactory graphicsFactory, LineStyleSpec? spec) {
  return graphicsFactory.createLinePaint()
    ..color = spec?.color ?? MaterialPalette.gray.shadeDefault
    ..dashPattern = spec?.dashPattern
    ..strokeWidth = spec?.thickness ?? 1;
}