snapConfiguration property

FloatingHeaderSnapConfiguration snapConfiguration

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:

Implementation

FloatingHeaderSnapConfiguration get snapConfiguration => _snapConfiguration;
void snapConfiguration= (FloatingHeaderSnapConfiguration value)

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;
}