supports method

bool supports(
  1. dynamic obj
)

Implementation

bool supports(dynamic obj) {
  return obj is DateTime || obj is num;
}