isDayDart static method

bool isDayDart(
  1. Object d
)

检测当前 Date 对象是一个有效的 DateTime

Implementation

// bool isValid() {
//   return _date is DateTime;
// }

static bool isDayDart(Object d) {
  return d is DayDart;
}