getTopLeft method

Future<DriverOffset> getTopLeft(
  1. SerializableFinder finder,
  2. {Duration? timeout}
)

Returns the point at the top left of the widget identified by finder.

The offset is expressed in logical pixels and can be translated to device pixels via dart:ui.FlutterView.devicePixelRatio.

Implementation

Future<DriverOffset> getTopLeft(SerializableFinder finder, { Duration? timeout }) async {
  return _getOffset(finder, OffsetType.topLeft, timeout: timeout);
}