QudsDigitalTimeViewer constructor
const
QudsDigitalTimeViewer({
- Key? key,
- int? hour,
- int? minute,
- int? second,
- int? milliSecond,
- bool format24 = true,
- bool showTimePeriod = true,
- String amText = 'AM',
- String pmText = 'PM',
- TextStyle timePeriodStyle = const TextStyle(fontSize: 24),
- TextStyle style = const TextStyle(fontSize: 24, letterSpacing: 3, color: Colors.white),
- 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);