allowImages method

void allowImages([
  1. UriPolicy? uriPolicy
])

Allows image elements.

The UriPolicy can be used to restrict the locations the images may be loaded from. By default this will use the default UriPolicy.

Implementation

void allowImages([UriPolicy? uriPolicy]) {
  uriPolicy ??= UriPolicy();
  add(_SimpleNodeValidator.allowImages(uriPolicy));
}