setBackgroundImagePosition method

  1. @override
Future<void> setBackgroundImagePosition(
  1. double x,
  2. double y, {
  3. bool clamp = false,
})
override

Moves the background image to the relative offset from the origin (bottom-left) specified by x and y. If clamp is true, the image cannot be positioned outside the bounds of the viewport.

Implementation

@override
Future<void> setBackgroundImagePosition(double x, double y,
    {bool clamp = false}) async {
  await _shim.setBackgroundImagePosition(x, y, clamp).toDart;
}