setOffset method Null safety

  1. @override
Future<void> setOffset(
  1. Offset off
)
override

Sets the offset of the platform view.

off is the view's new offset in logical pixel.

On Android, this allows the Android native view to draw the a11y highlights in the same location on the screen as the platform view widget in the Flutter framework.

Implementation

@override
Future<void> setOffset(Offset off) {
  return _internals.setOffset(off, viewId: viewId, viewState: _state);
}