isSVG property

bool isSVG

Checks if a file path or URL represents an SVG image.

Implementation

bool get isSVG {
  final mt = mimeType();
  return mt == 'image/svg+xml';
}