Svg constructor

Svg({
  1. String? viewBox,
  2. String? width,
  3. String? height,
  4. String? className,
  5. String? style,
  6. Map<String, String>? attrs,
  7. List<BloomNode> children = const [],
  8. Map<String, BloomEventHandler>? on,
})

Creates an <svg> viewport container descriptor.

Implementation

Svg({
  String? viewBox,
  String? width,
  String? height,
  super.className,
  super.style,
  Map<String, String>? attrs,
  super.children = const [],
  super.on,
}) : super('svg',
          attrs: _mergeAttrs(attrs, {
            if (viewBox != null) 'viewBox': viewBox,
            if (width != null) 'width': width,
            if (height != null) 'height': height,
          }));