MajorTickStyle constructor

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

Creates a major tick style with default or required properties.

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

Implementation

const MajorTickStyle({
  this.length = 7,
  this.thickness = 1.5,
  this.lengthUnit = GaugeSizeUnit.logicalPixel,
  this.color,
  this.dashArray,
}) : assert(length >= 0, 'Tick length must be a non-negative value.'),
     assert(thickness >= 0, 'Tick thickness must be a non-negative value.');