TimePickerSweepDecoration constructor

TimePickerSweepDecoration({
  1. required double pickerStrokeWidth,
  2. bool useRoundedPickerCap = true,
  3. Color? pickerColor,
  4. SweepGradient? pickerGradient,
  5. bool showConnector = false,
  6. double? connectorStrokeWidth,
  7. Color? connectorColor,
})

Creates a TimePickerSweepDecoration.

Implementation

TimePickerSweepDecoration({
  required this.pickerStrokeWidth,
  this.useRoundedPickerCap = true,
  this.pickerColor,
  this.pickerGradient,
  this.showConnector = false,
  this.connectorStrokeWidth,
  this.connectorColor,
})  : assert(
        (pickerGradient == null && pickerColor == null) ? false : true,
        'either a color or gradient must be provided too allow sweep drawing',
      ),
      assert(
        (pickerGradient != null && pickerColor != null) ? false : true,
        'color is not needed when a gradient is defined',
      );