isExeFileName property

bool get isExeFileName

检查字符串是否为exe文件名。

Implementation

bool get isExeFileName {
  final String path = toLowerCase();

  return path.endsWith(".exe") || path.endsWith('.com');
}