TailStyle constructor

const TailStyle({
  1. Color? color,
  2. double width = 0,
  3. double length = 0,
  4. double borderWidth = 0,
  5. LinearGradient? gradient,
  6. GaugeSizeUnit lengthUnit = GaugeSizeUnit.factor,
  7. 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.',
     );