getStaticFileInfo function
Public accessor for retrieving FileInfo for a given file.
Uses the same logic as the internal cache/population used by the static file handler and respects MIME type detection.
Implementation
Future<FileInfo> getStaticFileInfo(
final File file, {
final MimeTypeResolver? mimeResolver,
}) async => _getFileInfo(file, mimeResolver ?? _defaultMimeTypeResolver);