QudsDigitalTimeViewer constructor

const QudsDigitalTimeViewer({
  1. Key? key,
  2. int? hour,
  3. int? minute,
  4. int? second,
  5. int? milliSecond,
  6. bool format24 = true,
  7. bool showTimePeriod = true,
  8. String amText = 'AM',
  9. String pmText = 'PM',
  10. TextStyle timePeriodStyle = const TextStyle(fontSize: 24),
  11. TextStyle style = const TextStyle(fontSize: 24, letterSpacing: 3, color: Colors.white),
  12. Color? backgroundColor,
})

Create an instance of QudsDigitalTimeViewer

Implementation

const QudsDigitalTimeViewer(
    {Key? key,
    this.hour,
    this.minute,
    this.second,
    this.milliSecond,
    this.format24 = true,
    this.showTimePeriod = true,
    this.amText = 'AM',
    this.pmText = 'PM',
    this.timePeriodStyle = const TextStyle(fontSize: 24),
    this.style =
        const TextStyle(fontSize: 24, letterSpacing: 3, color: Colors.white),
    this.backgroundColor})
    : assert(hour == null || (hour >= 0 && hour < 24)),
      assert(minute == null || (minute >= 0 && minute < 60)),
      assert(second == null || (second >= 0 && second < 60)),
      assert(milliSecond == null || (milliSecond >= 0 && milliSecond < 1000)),
      super(key: key);