getRotation method

Future<int> getRotation()

Get the rotation angle of the current page

example:

int rotation = await page.getRotation();

return 0, 90, 180, or 270 degrees.

Implementation

Future<int> getRotation() async {
  return await _channel.invokeMethod('get_page_rotation', pageIndex);
}