exists method
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;
}
}