parseDateTime function

DateTime? parseDateTime(
  1. String? dateString
)

Parses a String to a DateTime object

Implementation

DateTime? parseDateTime(String? dateString) {
  if (dateString == null) return null;
  return _parseRfc822DateTime(dateString) ?? _parseIso8601DateTime(dateString);
}