isVector static method

bool isVector(
  1. String filePath
)

Checks if string is a vector file.

Implementation

static bool isVector(String filePath) {
  return filePath.toLowerCase().endsWith(".svg");
}