# hasImage method

Future<bool> hasImage(

1. String image,
2. {String? tag}

)

Check if registry has image tag

## Implementation

    Future<bool> hasImage(String image, {String? tag}) async {
      bool hasImage = await _hasImageOnly(image);
      if (tag == null) {
        return hasImage;
      }
      try {
        if (!hasImage) {
          return false;
        }
        await _getManifest(image, await _authenticate(image), tag);
        return true;
      } catch (e) {
        return false;
      }
    }