AnalogClockPainter constructor

AnalogClockPainter({
  1. required DateTime datetime,
  2. bool showDigitalClock = true,
  3. bool showTicks = true,
  4. bool showNumbers = true,
  5. bool showSecondHand = true,
  6. Color hourHandColor = Colors.black,
  7. Color minuteHandColor = Colors.black,
  8. Color secondHandColor = Colors.redAccent,
  9. Color tickColor = Colors.grey,
  10. Color digitalClockColor = Colors.black,
  11. Color numberColor = Colors.black,
  12. bool showAllNumbers = false,
  13. double textScaleFactor = 1.0,
  14. bool useMilitaryTime = true,
})

Implementation

AnalogClockPainter(
    {required this.datetime,
    this.showDigitalClock = true,
    this.showTicks = true,
    this.showNumbers = true,
    this.showSecondHand = true,
    this.hourHandColor = Colors.black,
    this.minuteHandColor = Colors.black,
    this.secondHandColor = Colors.redAccent,
    this.tickColor = Colors.grey,
    this.digitalClockColor = Colors.black,
    this.numberColor = Colors.black,
    this.showAllNumbers = false,
    this.textScaleFactor = 1.0,
    this.useMilitaryTime = true});