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

Properties

hashCode int
The hash code for this object.
no setterinherited
highlightColor String
final
onClearAllQuotes → dynamic Function()?
final
onInfoButton → dynamic Function()?
final
onPageChanged → dynamic Function(int pageNumber, int totalPages)?
final
onQuote → dynamic Function(String, int, Map<String, dynamic>)?
final
onQuoteRemoved → dynamic Function(String text, int pageNumber)?
final
onShareButton → dynamic Function()?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldHighlightQuotes bool
final

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 [], Map<String, String>? headers, 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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isIOS bool
Returns whether the current platform is iOS
no setter

Static Methods

closePDF() Future<bool>
Closes the currently open PDF viewer
openPDF(String filePath, String title, {int initialPage = 1, List<PDFQuote> existingQuotes = const []}) Future<bool>
Opens a PDF file from a given file path