FloatingHeaderSnapConfiguration class
Specifies how a floating header is to be "snapped" (animated) into or out of view.
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.
Constructors
- 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.
Properties
- curve → Curve
-
The snap animation curve.
final
- duration → Duration
-
The snap animation's duration.
final
- vsync → TickerProvider
-
The TickerProvider for the AnimationController that causes a
floating header to snap in or out of view.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited