DomRuler class abstract
Measures and tracks size changes for HTML elements in Dart web applications.
- Implementers
- Annotations
-
- @Injectable()
Constructors
- DomRuler(Document document, DomService domService)
-
factory
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
-
measure(
Element element, {bool offset = false}) → Future< Rectangle< num> > -
Returns a dimension client rectangle for
element
.inherited -
measureSync(
Element element, {bool offset = false}) → Rectangle< num> -
Returns a dimension client rectangle for
element
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
Element element, {bool aways = false}) → Stream< Rectangle< num> > -
Returns a stream of bounding client rectangles for
element
. -
update(
Element element, {List< String> ? cssClasses, Visibility? visibility, Position? position, num? width, num? height, num? left, num? top, num? right, num? bottom, num? zIndex, bool useCssTransform = true}) → Future<void> -
Returns a future that completes after updating position and dimension
based properties on
element
.inherited -
updateSync(
Element element, {List< String> ? cssClasses, Visibility? visibility, Position? position, num? width, num? height, num? left, num? top, num? right, num? bottom, num? zIndex, bool useCssTransform = true}) → void -
Updates position and dimension based properties on
element
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited