SvgRegion class
Represents a fragment of SVG content associated with an optional selector.
- 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
nullfor 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