InteractiveSelectorByIDAndParent class

A selector that matches SVG elements by id and whose parent element matches another selector.

This selector first invokes parentSelector on the provided element and then searches the returned subtree for a node with the given id. Returns the matched node or null.

Inheritance

Constructors

InteractiveSelectorByIDAndParent({required String id, required InteractiveSelector parentSelector, String? label, InteractiveType type = InteractiveType.viewOnly, String tag = '*'})
Creates a selector that matches elements with id whose parent satisfies parentSelector.
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.
no setteroverride
parentSelector → InteractiveSelector
The selector that must match the parent element.
final
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