fileExists static method

Future<bool> fileExists(
  1. String absolutePath
)

Check whether a file exists at absolutePath.

Implementation

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