getAspectRatio method

double? getAspectRatio()

Get aspect ratio used in current video. If aspect ratio is null, then aspect ratio from BetterPlayerConfiguration will be used. Otherwise _overriddenAspectRatio will be used.

Implementation

double? getAspectRatio() {
  return _overriddenAspectRatio ?? betterPlayerConfiguration.aspectRatio;
}