FloatingHeaderSnapConfiguration constructor Null safety

FloatingHeaderSnapConfiguration(
  1. {@Deprecated('Specify SliverPersistentHeaderDelegate.vsync instead. ' 'This feature was deprecated after v1.19.0.') TickerProvider? vsync,
  2. Curve curve,
  3. Duration duration}
)

Creates an object that specifies how a floating header is to be "snapped" (animated) into or out of view.

Implementation

FloatingHeaderSnapConfiguration({
  @Deprecated(
    'Specify SliverPersistentHeaderDelegate.vsync instead. '
    'This feature was deprecated after v1.19.0.',
  )
  this.vsync,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 300),
}) : assert(curve != null),
     assert(duration != null);