AxisLineStyle constructor

const AxisLineStyle({
  1. double thickness = 10,
  2. GaugeSizeUnit thicknessUnit = GaugeSizeUnit.logicalPixel,
  3. Color? color,
  4. Gradient? gradient,
  5. CornerStyle cornerStyle = CornerStyle.bothFlat,
  6. List<double>? dashArray,
})

Creates a minor tick style with default or required properties.

The arguments thickness, must be non-negative.

Implementation

const AxisLineStyle(
    {this.thickness = 10,
    this.thicknessUnit = GaugeSizeUnit.logicalPixel,
    this.color,
    this.gradient,
    this.cornerStyle = CornerStyle.bothFlat,
    this.dashArray})
    : assert(thickness >= 0,
          'Axis line thickness must be a non-negative value.'),
      assert(
          (gradient != null && gradient is SweepGradient) || gradient == null,
          'The gradient must be null or else '
          'the gradient must be equal to sweep gradient.');