PageFlipEffectHandler class abstract
Interface for handling effects triggered by the PageFlip engine. This allows the core engine to remain generic and dependency-free, while allowing for sophisticated haptic and audio implementations.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewportWidth ← double
-
Updates the viewport width so haptic physics normalize correctly.
Called during widget layout when the available width changes.
Default no-op for custom handlers that don't need width normalization.
no getter
Methods
-
dispose(
) → void - Dispose any resources (audio players, etc.) used by the handler.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onHandleEffect(
PageFlipEvent event, {int? pageIndex, int? intensity, double? volume, double? texture, double? resistance}) → FutureOr< void> - Called when an effect is triggered by the engine. Returns FutureOr so that async implementations (e.g. audio playback, physics-based haptics) are supported without forcing all callers to await.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited