getAspectRatio method

double getAspectRatio()

Implementation

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

  return _videoPlayerController!.state.width! /
      _videoPlayerController!.state.height!;
}