# rotateImage method

Future<SBDImageResult> rotateImage(

1. String imageFileUri,
2. double degrees

)

Rotates the image at `imageFileUri` by the given `degrees`.

## Implementation

    Future<SBDImageResult> rotateImage(
        String imageFileUri, double degrees) async {
      try {
        var operationParamsMap = <String, dynamic>{
          "imageFileUri": imageFileUri,
          "degrees": degrees
        };

        var result = await ScanbotSdk.channel
            .invokeMethod('rotateImage', operationParamsMap);

        return SBDImageResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }