exists static method

Future<bool> exists(
  1. String fileName
)

Return a boolean indicating if a file exists or not. Pass in the name of the file.

Implementation

static Future<bool> exists(String fileName) async {
  final file = await get(fileName);
  // ignore: avoid_slow_async_io
  return file.exists();
}