Ponyfill class abstract
MDC DOM provides commonly-used utilities for inspecting, traversing, and manipulating the DOM.
Javascript: mdc.dom.ponyfill
.
- Annotations
-
- @JS('ponyfill')
Constructors
- Ponyfill()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
closest(
Element root, String selector) → Element - Returns the ancestor of the given element matching the given selector (which may be the element itself if it matches), or null if no matching ancestor is found.
-
matches(
Element root, String selector) → bool - Returns true if the given element matches the given CSS selector.