SvgComponent constructor

SvgComponent({
  1. Svg? svg,
  2. Vector2? position,
  3. Vector2? size,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. Iterable<Component>? children,
  8. int? priority,
  9. Paint? paint,
  10. ComponentKey? key,
})

Creates an SvgComponent

Implementation

SvgComponent({
  Svg? svg,
  super.position,
  super.size,
  super.scale,
  super.angle,
  super.anchor,
  super.children,
  super.priority,
  Paint? paint,
  super.key,
}) : _svg = svg {
  this.paint = paint ?? this.paint;
}