fromDateTime method Null safety

HijriDateTime fromDateTime(
  1. DateTime date
)

returns the hijri date from the given date


final HijriDateTime currentDate = HijriDateTime.fromDateTime(
                                                          DateTime.now));

Implementation

static HijriDateTime fromDateTime(DateTime date) {
  return convertToHijriDate(date);
}