createDateTime static method
Implementation
static DateTime? createDateTime({
required int year,
int month = 1,
int day = 1,
int hour = 0,
int minute = 0,
int second = 0,
int millisecond = 0,
}) {
try {
return DateTime(year, month, day, hour, minute, second, millisecond);
} catch (e) {
return null;
}
}