getTopLeft method
- FinderBase<
Element> finder, { - bool warnIfMissed = false,
- String callee = 'getTopLeft',
Returns the point at the top left of the given widget.
If warnIfMissed
is true (the default is false), then the returned
coordinate is checked to see if a hit test at the returned location would
actually include the specified element in the HitTestResult, and if not,
a warning is printed to the console.
The callee
argument is used to identify the method that should be
referenced in messages regarding warnIfMissed
. It can be ignored unless
this method is being called from another that is forwarding its own
warnIfMissed
parameter (see e.g. the implementation of tap).
Implementation
Offset getTopLeft(finders.FinderBase<Element> finder, { bool warnIfMissed = false, String callee = 'getTopLeft' }) {
return _getElementPoint(finder, (Size size) => Offset.zero, warnIfMissed: warnIfMissed, callee: callee);
}