TailStyle constructor
const
TailStyle({
- Color? color,
- double width = 0,
- double length = 0,
- double borderWidth = 0,
- LinearGradient? gradient,
- GaugeSizeUnit lengthUnit = GaugeSizeUnit.factor,
- Color? borderColor,
Creates the tail style with default or required properties.
Implementation
const TailStyle(
{this.color,
this.width = 0,
this.length = 0,
this.borderWidth = 0,
this.gradient,
this.lengthUnit = GaugeSizeUnit.factor,
this.borderColor})
: assert(width >= 0, 'Tail width must be a non-negative value.'),
assert(length >= 0, 'Tail length must be a non-negative value.'),
assert(
borderWidth >= 0,
'Tail border width must be a '
'non-negative value.');