FloatingHeaderSnapConfiguration constructor

FloatingHeaderSnapConfiguration({@required TickerProvider vsync, Curve curve: Curves.ease, Duration duration: const Duration(milliseconds: 300) })

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

Implementation

FloatingHeaderSnapConfiguration({
  @required this.vsync,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 300),
}) : assert(vsync != null),
     assert(curve != null),
     assert(duration != null);