source function

Node source({
  1. String? src,
  2. String? srcset,
  3. String? media,
  4. dynamic sizes,
  5. String? type,
  6. String? id,
  7. dynamic className,
  8. dynamic style,
  9. Map<String, dynamic> p = const {},
})

Implementation

Node source({
  String? src,
  String? srcset,
  String? media,
  sizes,
  String? type,
  String? id,
  className,
  style,
  Map<String, dynamic> p = const {},
}) =>
    SelfClosingNode(
        'source',
        _apply([
          p
        ], {
          'src': src,
          'srcset': srcset,
          'media': media,
          'sizes': sizes,
          'type': type,
          'id': id,
          'class': className,
          'style': style
        }));