InteractivePdfViewer class
Constructors
-
InteractivePdfViewer.new({dynamic onQuote(String, int, Map<String, dynamic>)?, dynamic onClearAllQuotes()?, dynamic onQuoteRemoved(String text, int pageNumber)?, dynamic onInfoButton()?, dynamic onShareButton()?, dynamic onPageChanged(int pageNumber, int totalPages)?, bool shouldHighlightQuotes = true, String highlightColor = '#FFEB3B'})
-
Creates a new instance of InteractivePdfViewer
Methods
-
dispose()
→ void
-
Stops the sentence fetching timer
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
openPDFAsset(String assetPath, String title, {int initialPage = 1, List<PDFQuote> existingQuotes = const []})
→ Future<bool>
-
Opens a PDF asset bundled with the application
-
openPDFFromUrl(String url, String title, {int initialPage = 1, List<PDFQuote> existingQuotes = const [], dynamic progressCallback(double progress)?})
→ Future<bool>
-
Downloads a PDF from a URL and opens it using PDFKit on iOS
-
openPDFWithOptions(String filePath, String title, {int initialPage = 1, List<PDFQuote> existingQuotes = const []})
→ Future<bool>
-
Opens a PDF file from a given file path with highlighting options
-
removeQuote(String text, int pageNumber)
→ Future<bool>
-
Removes a specific quote from the PDF
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
isIOS
→ bool
-
Returns whether the current platform is iOS
no setter