FlutterAnalogClockPainter constructor

FlutterAnalogClockPainter(
  1. DateTime _datetime, {
  2. Color dialPlateColor = Colors.transparent,
  3. Color hourHandColor = Colors.black,
  4. Color minuteHandColor = Colors.black,
  5. Color secondHandColor = Colors.black,
  6. Color numberColor = Colors.black,
  7. Color borderColor = Colors.black,
  8. Color tickColor = Colors.black,
  9. Color centerPointColor = Colors.black,
  10. bool showBorder = true,
  11. bool showTicks = true,
  12. bool showMinuteHand = true,
  13. bool showSecondHand = true,
  14. bool showNumber = true,
  15. double hourNumberScale = 1.0,
  16. List<String> hourNumbers = defaultHourNumbers,
  17. double? borderWidth,
})

Implementation

FlutterAnalogClockPainter(
  this._datetime, {
  this.dialPlateColor = Colors.transparent,
  this.hourHandColor = Colors.black,
  this.minuteHandColor = Colors.black,
  this.secondHandColor = Colors.black,
  this.numberColor = Colors.black,
  this.borderColor = Colors.black,
  this.tickColor = Colors.black,
  this.centerPointColor = Colors.black,
  this.showBorder = true,
  this.showTicks = true,
  this.showMinuteHand = true,
  this.showSecondHand = true,
  this.showNumber = true,
  this.hourNumberScale = 1.0,
  this.hourNumbers = defaultHourNumbers,
  double? borderWidth,
})  : assert(hourNumbers.length == 12),
      _borderWidth = borderWidth;