AnalogClock constructor

const AnalogClock({
  1. DateTime? datetime,
  2. bool showDigitalClock = true,
  3. bool showTicks = true,
  4. bool showNumbers = true,
  5. bool showSecondHand = true,
  6. bool showAllNumbers = false,
  7. bool useMilitaryTime = true,
  8. Color hourHandColor = Colors.black,
  9. Color minuteHandColor = Colors.black,
  10. Color secondHandColor = Colors.redAccent,
  11. Color tickColor = Colors.grey,
  12. Color digitalClockColor = Colors.black,
  13. Color numberColor = Colors.black,
  14. double textScaleFactor = 1.0,
  15. double width = double.infinity,
  16. double height = double.infinity,
  17. BoxDecoration decoration = const BoxDecoration(),
  18. dynamic isLive,
  19. Key? key,
})

Implementation

const AnalogClock(
    {this.datetime,
    this.showDigitalClock = true,
    this.showTicks = true,
    this.showNumbers = true,
    this.showSecondHand = true,
    this.showAllNumbers = false,
    this.useMilitaryTime = 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.textScaleFactor = 1.0,
    this.width = double.infinity,
    this.height = double.infinity,
    this.decoration = const BoxDecoration(),
    isLive,
    Key? key})
    : this.isLive = isLive ?? (datetime == null),
      super(key: key);