stringToDateTime static method
Implementation
static DateTime stringToDateTime(String source,
{String? pattern, String? locale}) {
pattern ??= 'yyyy-MM-ddTHH:mm:ss';
initializeDateFormatting(locale, null);
return DateFormat(pattern, locale).parse(source);
}