getAspectRatio method

double getAspectRatio()

Implementation

double getAspectRatio() {
  if (_videoPlayerController == null) {
    return 16 / 9;
  }
  return _videoPlayerController!.value.size.width /
      _videoPlayerController!.value.size.height;
}