defaultParser function
The default parser will use DateFormat and with a know to parse format
Implementation
DateTime defaultParser(String value, ParseInfo pi) {
try {
return DateFormat(pi.format).parseUtc(removeEndingZ(value));
} on FormatException {
// ignore: avoid_print
print('(regular) format error: [$value] with [${pi.format}]');
rethrow;
}
}