getEndDate method
Implementation
DateTime getEndDate({DateTime? endDate}) {
if (data['UNTIL'] != null) {
DateTime fd = DateTime.parse(data['UNTIL'].toString());
// return Intl.withLocale(Intl.getCurrentLocale(), () => new DateFormat("yyyy-MM-dd hh:mm").format(fd));
print(fd);
return fd;
}
return DateTime(DateTime.now().year + 10);
}