isVector method Null safety

bool isVector(
  1. String filePath
)

Checks if string is a vector file.

Implementation

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