getRotation method
Returns the clockwise preview rotation in degrees. Desktop and web platforms that do not implement the native method return 0.
Implementation
@override
Future<int> getRotation() async {
try {
return await methodChannel.invokeMethod('getRotation') as int;
} on MissingPluginException {
return 0;
}
}