toOrientationCorrection method
Implementation
OrientationCorrection toOrientationCorrection() {
switch (this) {
case 'ROTATE_0':
return OrientationCorrection.rotate_0;
case 'ROTATE_90':
return OrientationCorrection.rotate_90;
case 'ROTATE_180':
return OrientationCorrection.rotate_180;
case 'ROTATE_270':
return OrientationCorrection.rotate_270;
}
throw Exception('$this is not known in enum OrientationCorrection');
}