isVector static method

bool isVector(
  1. String? s
)

验证是否为 SVG 矢量图名(.svg)。

Implementation

static bool isVector(String? s) =>
    s != null && s.isNotEmpty && _vectorRegExp.hasMatch(s);