search property

String get search

Implementation

String get search {
  String? search;
  String? query = _resolvedHyperlink?.query;
  if (query != null && query.isNotEmpty) {
    search = '?' + query;
  }
  return _DOMString(search);
}
set search (String value)

Implementation

set search(String value) {
  if (_resolvedHyperlink == null) return;
  // Remove starting `?`.
  if (value.startsWith('?')) {
    value = value.substring(1);
  }

  _resolvedHyperlink = _resolvedHyperlink!.replace(query: value);
  _reflectToAttributeHref();
}