exists static method

Future<bool> exists(
  1. String url
)

Check if file exists for URL.

Implementation

static Future<bool> exists(String url) async {
  final path = await getFilePath(url);
  return File(path).existsSync();
}