PdfViewerScrollInteractionDelegate class abstract

The "Brain" for handling desktop-style pointer interactions (Mouse Wheel, Trackpad).

This delegate decouples the Intent (e.g., "User wants to pan 50 pixels") from the Execution (e.g., "Jump immediately" vs "Animate with friction").

Lifecycle:

  1. Created by PdfViewerScrollInteractionDelegateProvider's instance.
  2. init is called when the controller is attached.
  3. pan / zoom are called on user interaction.
  4. stop is called when the user interrupts (e.g., touches the screen).
  5. dispose is called when the viewer is destroyed.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Called when the delegate is being destroyed. Implementations should dispose of any Tickers or listeners here.
init(PdfViewerController controller, TickerProvider vsync) → void
Called when the PdfViewer is ready.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pan(Offset delta, PdfViewerLayoutMetrics layoutMetrics) → void
Request a pan (scroll) operation.
stop() → void
Called when the user initiates a competing interaction (e.g., Touch Pan, Pinch Zoom).
toString() → String
A string representation of this object.
inherited
zoom(double scale, Offset focalPoint, PdfViewerLayoutMetrics layoutMetrics) → void
Request a zoom operation.

Operators

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