configure method

  1. @override
void configure()
override

Called by constructor, to configure this component.

Implementation

@override
void configure() {
  content!.onTouchStart.listen(_startPoint);
  content!.onMouseDown.listen(_startPoint);

  content!.onTouchMove.listen(_movePoint);
  content!.onMouseMove.listen(_movePoint);

  content!.onTouchEnd.listen(_endPoint);
  content!.onMouseUp.listen(_endPoint);

  content!.draggable = false;

  content!.style.width = '100%';
  content!.style.height = '100%';

  _img.draggable = false;

  _img.style.width = '100%';
  _img.style.height = '100%';
  _img.style.objectFit = 'contain';
}