hostContains property

String? get hostContains

Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name.

Implementation

String? get hostContains => _wrapped.hostContains;
set hostContains (String? v)

Implementation

set hostContains(String? v) {
  _wrapped.hostContains = v;
}