getEndDate method

DateTime getEndDate({
  1. DateTime? endDate,
})

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\n\n');
    return fd;
  }
  return DateTime(DateTime.now().year + 10);
}