setOffset method

Offset setOffset()

Implementation

Offset setOffset() {
  final resultBox = resultKey.currentContext?.findRenderObject() as RenderBox;
  final resultOffset = resultBox.localToGlobal(Offset.zero);
  _resultWidth = resultBox.size.width;

  return Offset(
    _setOffsetDx(resultBox: resultBox, resultOffset: resultOffset),
    _setOffsetDy(resultBox: resultBox, resultOffset: resultOffset),
  );
}