TimePickerHandlerDecoration constructor

TimePickerHandlerDecoration({
  1. Color color = Colors.black,
  2. BoxShape shape = BoxShape.circle,
  3. BoxShadow? shadow,
  4. Icon? icon,
  5. double radius = 8,
  6. Border? border,
  7. double handlerOutterRadius = 12,
  8. bool useRoundedPickerCap = false,
  9. bool showHandler = true,
  10. bool showHandlerOutter = false,
})

Creates a TimePickerHandlerDecoration.

Implementation

TimePickerHandlerDecoration({
  this.color = Colors.black,
  this.shape = BoxShape.circle,
  this.shadow,
  this.icon,
  this.radius = 8,
  this.border,
  this.handlerOutterRadius = 12,
  this.useRoundedPickerCap = false,
  this.showHandler = true,
  this.showHandlerOutter = false,
})  : assert(
        (showHandlerOutter && shadow != null) ? false : true,
        'shadows does not draw well when using the default HandlerOutter, try using border instead',
      ),
      assert(
        (showHandlerOutter && icon != null) ? false : true,
        'handlerOutterRadius can not be use with icon',
      ),
      assert(
        (!showHandlerOutter ||
                (showHandlerOutter && handlerOutterRadius > radius))
            ? true
            : false,
        'when using handlerOutterRadius needs to be bigger than radius value',
      );