Check whether a file exists at absolutePath.
absolutePath
static Future<bool> fileExists(String absolutePath) async { if (kIsWeb) return false; return File(absolutePath).exists(); }