exists method

  1. @override
Future<bool> exists()
override

Returns whether or not there is an existing data file with cache info.

Implementation

@override
Future<bool> exists() async {
  final path = await _getPath();
  return File(path).exists();
}