rotatePageClockwise static method
Rotates all images of the given page
by 90 degrees 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;
}
}