AxisLineStyle constructor
const
AxisLineStyle({
- double thickness = 10,
- GaugeSizeUnit thicknessUnit = GaugeSizeUnit.logicalPixel,
- Color? color,
- Gradient? gradient,
- CornerStyle cornerStyle = CornerStyle.bothFlat,
- 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.');