setPageSpacing method
Sets the spacing between pages. This method is supported only on the Android
platform.
- For the
iOS
platform, use the setMargins method instead. The spacing between pages is equal to the value of CPDFEdgeInsets.top.
Parameters:
spacing
The space between pages, in pixels.
example:
await _controller.setPageSpacing(10);
Implementation
Future<void> setPageSpacing(int spacing) async {
await _channel.invokeMethod('set_page_spacing', spacing);
}