maximumDate property

Jalali? maximumDate
final

The maximum selectable date that the picker can settle on.

When non-null, the user can still scroll the picker to Jalalis later than maximumDate, but the onDateTimeChanged will not be called on these Jalalis. Once let go, the picker will scroll back to maximumDate.

In PCupertinoDatePickerMode.time mode, a time becomes unselectable if the Jalali produced by combining that particular time and the date part of initialDateTime is later than maximumDate. So typically maximumDate needs to be set to a Jalali that is on the same date as initialDateTime.

Defaults to null. When set to null, the picker does not impose a limit on the latest Jalali the user can select.

Implementation

final Jalali? maximumDate;