AnchorElement constructor

AnchorElement(
  1. {String? href}
)

Implementation

factory AnchorElement({String? href}) {
  AnchorElement e = JS<AnchorElement>(
      'returns:AnchorElement;creates:AnchorElement;new:true',
      '#.createElement(#)',
      document,
      "a");
  if (href != null) e.href = href;
  return e;
}