isFont property

bool isFont

Checks if a file path or URL represents a font file.

Implementation

bool get isFont {
  final mt = mimeType();
  if (mt == null) return false;
  return mt.contains('font') ||
      mt == 'application/vnd.ms-fontobject' ||
      mt == 'application/x-font-woff';
}