getCenter method

Offset getCenter (Finder finder)

Returns the point at the center of the given widget.

Implementation

Offset getCenter(Finder finder) {
  return _getElementPoint(finder, (Size size) => size.center(Offset.zero));
}