# rotatePageClockwise static method

Future<Page> rotatePageClockwise(

1. Page page,
2. int rotationsCount

)

Rotates all images of the given `page` by 90 degrees value for `rotationsCount` times.

## Implementation

    static Future<Page> rotatePageClockwise(Page page, int rotationsCount) async {
      try {
        var arguments = {'page': page.toJson(), 'rotationsCount': rotationsCount};
        var pageJson =
            await _channel.invokeMethod('rotatePageClockwise', arguments);
        var decoded = jsonDecode(pageJson);
        var rotatedPage = Page.fromJson(decoded);
        return rotatedPage;
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }