onHandleEffect property
FutureOr<void> Function(PageFlipEvent effect, {int? intensity, double? resistance, double? texture, double? volume})?
onHandleEffect
final
Custom callback for handling raw effects. Overrides the built-in handler.
This observer receives all effect events even when PageFlipConfig disables built-in sound or haptics, allowing hosts to implement an entirely custom policy. Use PageFlipConfig.effectHandler when the engine's enable/disable gates should remain authoritative.
Implementation
final FutureOr<void> Function(
PageFlipEvent effect, {
int? intensity,
double? volume,
double? texture,
double? resistance,
})? onHandleEffect;