getCenter method

Offset getCenter (
  1. 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));
}