JPickerValue.value constructor

JPickerValue.value(
  1. JDateModel data
)

Implementation

JPickerValue.value(JDateModel data) {
  if (data.jhijri != null) {
    _jHijri = data.jhijri!;
    _dateTime = data.jhijri!.dateTime;
  }
  if (data.dateTime != null) {
    _dateTime = data.dateTime;
    if (data.dateTime!.year > 1938 && data.dateTime!.year < 2076) {
      _jHijri = JHijri(fDate: data.dateTime);
    }
  }
}