isImage static method

bool isImage(
  1. String s
)

Checks if string is an image file. 检查字符串是否为图像文件

Implementation

static bool isImage(String s) => RegexUtils.hasMatch(s, RegexConstants.image);