SvgRegion class

Represents a fragment of SVG content associated with an optional selector.

  • selector is the InteractiveSelector corresponding to this fragment. When selector is null this entry represents the background / full SVG content (i.e. non-selective base layer).
  • svg contains the raw SVG string fragment to render for this region.
Annotations

Constructors

SvgRegion({required InteractiveSelector? selector, required String svg})
Creates a new SvgRegion with the given fields.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → InteractiveSelector?
The selector associated with this fragment, or null for the background/full SVG.
final
svg → String
Raw SVG content for this fragment. This string is intended to be passed to SvgPicture.string or similar renderers.
final

Methods

copyWith({InteractiveSelector? selector, String? svg}) → SvgRegion
Returns a copy of this SvgRegion, replacing any provided fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override