isVector property

bool get isVector

Determines whether a given string represents a vector file.

Implementation

bool get isVector {
  return toLowerCase().endsWith('.svg');
}