isTimeValue static method

bool isTimeValue(
  1. dynamic value
)

Returns true if value is a UNIX epoch int or a DateTime.

Implementation

static bool isTimeValue(dynamic value) {
  return (value is int && isValueInUnixEpochRange(value)) ||
      value is DateTime;
}