a function

Element a(
  1. dynamic children, {
  2. String? href,
  3. String? target,
  4. String? id,
  5. String? className,
  6. Map<String, dynamic>? attributes,
  7. Function? onClick,
})

Implementation

Element a(
  dynamic children, {
  String? href,
  String? target,
  String? id,
  String? className,
  Map<String, dynamic>? attributes,
  Function? onClick,
}) => _el(
  'a',
  children,
  id: id,
  className: className,
  attributes: {'href': href, 'target': target, ...?attributes},
  events: {if (onClick != null) 'click': onClick},
);