getTopRight method

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

Returns the point at the top right 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> getTopRight(SerializableFinder finder, { Duration? timeout }) async {
  return _getOffset(finder, OffsetType.topRight, timeout: timeout);
}