PdfController class
Pages control
Constructors
-
PdfController({required Future<
PdfDocument> document, int initialPage = 1, double viewportFraction = 1.0})
Properties
-
document
↔ Future<
PdfDocument> -
Document future for showing in PdfView
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialPage ↔ int
-
The page to show when first creating the PdfView.
getter/setter pair
- page → int
-
Actual showed page
no setter
- pagesCount → int
-
Count of all pages in document
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewportFraction → double
-
The fraction of the viewport that each page should occupy.
final
Methods
-
animateToPage(
int page, {required Duration duration, required Curve curve}) → Future< void> - Animates the controlled PdfView from the current page to the given page.
-
dispose(
) → void -
jumpToPage(
int page) → void - Changes which page is displayed in the controlled PdfView.
-
loadDocument(
Future< PdfDocument> documentFuture, {int initialPage = 1}) → Future<void> - Load document
-
nextPage(
{required Duration duration, required Curve curve}) → Future< void> - Animates the controlled PdfView to the next page.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousPage(
{required Duration duration, required Curve curve}) → Future< void> - Animates the controlled PdfView to the previous page.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited