getPageSize method

Future<Size> getPageSize({
  1. required int page,
})

Returns the size of the given page index.

Only working for iOS.

Implementation

Future<Size> getPageSize({required int page}) async {
  final sizeMap =
      await this._channel.invokeMethod('pageSize', {'page': page});
  return Size(sizeMap["width"], sizeMap["height"]);
}