isListOfTimedPairs static method

bool isListOfTimedPairs(
  1. Iterable list
)

Returns true if list is a List of time pairs (X: DateTime, Y: value).

Implementation

static bool isListOfTimedPairs(Iterable list) {
  if (list.isEmpty) return false;
  return listMatchesAll(
      list,
      (dynamic e) =>
          e is List && e.length == 2 && isTimeValue(e[0]) && e[1] is num);
}