calculateHeight method

Future<double> calculateHeight(
  1. double width
)

Compute the best height for your TeadsInReadAdView with the given width.

Returns the calculated height that fit the creative aspect ratio.

Implementation

Future<double> calculateHeight(double width) async {
  return await _channel
      .invokeMethod("calculateHeight", [width, adRequestIdentifier]);
}