TimePickerModel constructor
- {DateTime currentTime,
- LocaleType locale,
- bool showSecondsColumn = true}
Implementation
TimePickerModel({DateTime currentTime, LocaleType locale, this.showSecondsColumn: true})
: super(locale: locale) {
this.currentTime = currentTime ?? DateTime.now();
_currentLeftIndex = this.currentTime.hour;
_currentMiddleIndex = this.currentTime.minute;
_currentRightIndex = this.currentTime.second;
}