exists method

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

Checks if an asset exists without loading it.

relativePath - Path relative to the package root

Returns true if the asset exists, false otherwise.

Implementation

@override
Future<bool> exists(String relativePath) async {
  try {
    return await _manager.assetExists(relativePath);
  } catch (e) {
    return false;
  }
}