getAspectRatio method

Future<double?> getAspectRatio()

Implementation

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