isIcon property

bool get isIcon

Checks if a file path or URL represents an icon file.

Implementation

bool get isIcon {
  final mt = mimeType();
  return mt == 'image/x-icon' || // Common MIME type for .ico files
      mt == 'image/x-icns'; // Common MIME type for .icns files
  // You can add more MIME types if there are other icon formats you want to support.
}