ClockWidget constructor

const ClockWidget(
  1. DateTime datetime, {
  2. Color handColor = Colors.black,
  3. Color numberColor = Colors.black,
  4. Color borderColor = Colors.black,
  5. Color color = Colors.blue,
  6. double strokeWidth = 1.0,
  7. double width = 100,
  8. double height = 100,
  9. Key? key,
})

diameter - 直径
startAngle - 开始角度
sweepAngle - 间隔角度
color - 颜色
strokeWidth - 画笔粗细

Implementation

const ClockWidget(
  this.datetime, {
  this.handColor = Colors.black,
  this.numberColor = Colors.black,
  this.borderColor = Colors.black,
  super.color = Colors.blue,
  super.strokeWidth = 1.0,
  super.width = 100,
  super.height = 100,
  super.key,
});