preferredEndDate abstract method

Future<DateTime> preferredEndDate(
  1. DateTime? maximumDate
)

Called when the renew interaction allows to customize the end date programmatically. You can prompt the user for the number of days to renew, for example.

The returned date can't exceed maximumDate.

Implementation

Future<DateTime> preferredEndDate(DateTime? maximumDate);