getAspectRatio method
Implementation
Future<double?> getAspectRatio() async {
if (_nativeChannel == null) {
debugPrint('ERROR: MethodChannel is null');
return -1;
}
double? aspectRatio = await _nativeChannel!.invokeMethod(
'getAspectRatio',
);
return aspectRatio;
}