initializeProperties method

  1. @override
void initializeProperties(
  1. Map<String, BindingObjectProperty> properties
)
override

Implementation

@override
void initializeProperties(Map<String, BindingObjectProperty> properties) {
  properties['offsetTop'] = BindingObjectProperty(getter: () => offsetTop);
  properties['offsetLeft'] = BindingObjectProperty(getter: () => offsetLeft);
  properties['offsetWidth'] = BindingObjectProperty(getter: () => offsetWidth);
  properties['offsetHeight'] = BindingObjectProperty(getter: () => offsetHeight);

  properties['scrollTop'] =
      BindingObjectProperty(getter: () => scrollTop, setter: (value) => scrollTop = castToType<double>(value));
  properties['scrollLeft'] =
      BindingObjectProperty(getter: () => scrollLeft, setter: (value) => scrollLeft = castToType<double>(value));
  properties['scrollWidth'] = BindingObjectProperty(getter: () => scrollWidth);
  properties['scrollHeight'] = BindingObjectProperty(getter: () => scrollHeight);

  properties['clientTop'] = BindingObjectProperty(getter: () => clientTop);
  properties['clientLeft'] = BindingObjectProperty(getter: () => clientLeft);
  properties['clientWidth'] = BindingObjectProperty(getter: () => clientWidth);
  properties['clientHeight'] = BindingObjectProperty(getter: () => clientHeight);

  properties['id'] = BindingObjectProperty(getter: () => id, setter: (value) => id = castToType<String>(value));
  properties['className'] =
      BindingObjectProperty(getter: () => className, setter: (value) => className = castToType<String>(value));
  properties['classList'] = BindingObjectProperty(getter: () => classList);
  properties['dir'] = BindingObjectProperty(getter: () => dir, setter: (value) => {});
}