fileExists static method
ファイルパスが存在するか確認します。長いパスの場合はプレフィックスを追加します。
filePath 確認するファイルパス
return 存在する場合はtrue、存在しない場合はfalse
Implementation
static Future<bool> fileExists(String filePath) async {
final safePath = ensureSafePath(filePath);
return await File(safePath).exists();
}