DomRulerImpl class

Actual implementation.

Implemented types
Annotations
  • @Injectable()

Constructors

DomRulerImpl(Document _document, DomService _domService)

Properties

hashCode int
The hash code for this object.
no setterinherited
onLayoutChanged Stream<DomService>?
Override with an implementation of DomService.onLayoutChanged.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCssClassesSync(Element element, List<String> classes) → void
Synchronously set element.classes to add classes.
canSyncWrite(Element element) bool
Return true if element can be synchronously updated safely because it is not in the live DOM document.
clearCssPropertiesSync(Element element) → void
Clear all CSS style properties on element.
measure(Element element, {bool offset = false}) Future<Rectangle<num>>
Returns a dimension client rectangle for element.
measureSync(Element element, {bool offset = false}) Rectangle<num>
Returns a dimension client rectangle for element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRead() Future<void>
Override with an implementation of DomService.onRead.
onWrite() Future<void>
Override with an implementation of DomService.onWrite.
removeCssClassesSync(Element element, List<String> classes) → void
Removes classes on element.
setCssPropertySync(Element element, String? propertyName, String? propertyValue) → void
Synchronously write element.stylepropertyName = propertyValue.
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