DigitalClock constructor

const DigitalClock({
  1. String? format,
  2. DateTime? datetime,
  3. bool showSeconds = true,
  4. bool showDate = true,
  5. BoxDecoration? decoration,
  6. EdgeInsets? padding,
  7. Color digitalClockTextColor = Colors.black,
  8. double textScaleFactor = 1.0,
  9. dynamic isLive,
  10. Key? key,
})

Implementation

const DigitalClock(
    {this.format,
    this.datetime,
    this.showSeconds = true,
    this.showDate = true,
    this.decoration,
    this.padding,
    this.digitalClockTextColor = Colors.black,
    this.textScaleFactor = 1.0,
    isLive,
    super.key})
    : isLive = isLive ?? (datetime == null);