getDateTime method

DateTime getDateTime(
  1. int index, {
  2. dynamic innerMapKey,
  3. int? innerIndex,
  4. String? format,
  5. String? locale,
  6. bool autoDetectFormat = false,
  7. bool useCurrentLocale = false,
  8. bool utc = false,
  9. DateTime? defaultValue,
  10. ElementConverter<DateTime>? converter,
})

Converts the element at index to a DateTime.

Implementation

DateTime getDateTime(
  int index, {
  dynamic innerMapKey,
  int? innerIndex,
  String? format,
  String? locale,
  bool autoDetectFormat = false,
  bool useCurrentLocale = false,
  bool utc = false,
  DateTime? defaultValue,
  ElementConverter<DateTime>? converter,
}) => ConvertObjectImpl.toDateTime(
  _valueAt(index),
  mapKey: innerMapKey,
  listIndex: innerIndex,
  format: format,
  locale: locale,
  autoDetectFormat: autoDetectFormat,
  useCurrentLocale: useCurrentLocale,
  utc: utc,
  defaultValue: defaultValue,
  converter: converter,
  debugInfo: {'index': index},
);