InteractiveSelectorByID class

A selector that matches SVG elements by their id attribute.

Use this when you want to match a specific element or group in the SVG via its id.

Inheritance
Implementers

Constructors

InteractiveSelectorByID({required String id, String? label, InteractiveType type = InteractiveType.viewOnly, String tag = '*'})
Creates a selector that matches elements with the given id.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The identifier used for selection. Semantics depend on the concrete selector.
finalinherited
label → String
The human-readable label for this selector. May be empty.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
The xml's element name (e.g., 'path', 'g', 'rect') this selector is intended to match.
finalinherited
type → InteractiveType
The interactivity type for this selector (view-only or touchable).
finalinherited

Methods

call(XmlNode element) → XmlNode?
Callable shorthand that delegates to selector.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selector(XmlNode element) → XmlNode?
Returns true when element matches this selector.
override
toString() → String
A string representation of this object.
inherited

Operators

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