snapConfiguration property
Defines the parameters used to snap (animate) the floating header in and out of view.
If snapConfiguration is null then the floating header does not snap.
See also:
- RenderSliverFloatingPersistentHeader.maybeStartSnapAnimation and RenderSliverFloatingPersistentHeader.maybeStopSnapAnimation, which start or stop the floating header's animation.
- SliverAppBar, which creates a header that can be pinned, floating, and snapped into view via the corresponding parameters.
Implementation
FloatingHeaderSnapConfiguration get snapConfiguration => _snapConfiguration;
Implementation
set snapConfiguration(FloatingHeaderSnapConfiguration value) {
if (value == _snapConfiguration)
return;
if (value == null) {
_controller?.dispose();
} else {
if (_snapConfiguration != null && value.vsync != _snapConfiguration.vsync)
_controller?.resync(value.vsync);
}
_snapConfiguration = value;
}