MinorTickStyle constructor

const MinorTickStyle({
  1. double length = 5,
  2. GaugeSizeUnit lengthUnit = GaugeSizeUnit.logicalPixel,
  3. Color? color,
  4. double thickness = 1.5,
  5. List<double>? dashArray,
})

Creates a minor tick style with default or required properties.

The arguments length, thickness, must be non-negative.

Implementation

const MinorTickStyle(
    {double length = 5,
    GaugeSizeUnit lengthUnit = GaugeSizeUnit.logicalPixel,
    Color? color,
    double thickness = 1.5,
    List<double>? dashArray})
    : assert(length >= 0, 'Tick length must be a non-negative value.'),
      assert(thickness >= 0, 'Tick thickness must be a non-negative value.'),
      super(
        length: length,
        lengthUnit: lengthUnit,
        thickness: thickness,
        dashArray: dashArray,
        color: color,
      );