parseLegacyTranscriptFileName function
Implementation
DateTime? parseLegacyTranscriptFileName(String fileName) {
final match = _legacyTranscriptFileNamePattern.firstMatch(fileName);
if (match == null) {
return null;
}
final year = int.parse(match.group(1)!);
final month = int.parse(match.group(2)!);
final day = int.parse(match.group(3)!);
final hour = int.parse(match.group(4)!);
final minute = int.parse(match.group(5)!);
final second = int.parse(match.group(6) ?? '0');
return DateTime(year, month, day, hour, minute, second);
}