StickyState<I> class
Sticky state object that describes header position and content height
Constructors
- StickyState(I index, {double position = 0, double offset = 0, bool sticky = false, double? contentSize})
Properties
- contentSize → double?
-
Scroll item height.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → I
-
Item index
final
- offset → double
-
Number of pixels, that outside of viewport
final
- position → double
-
Position, that header already passed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sticky → bool
-
If header is in sticky state
final
Methods
-
copyWith(
{double? position, double? offset, bool? sticky, double? contentHeight}) → StickyState< I> - Create state duplicate, with optional state options override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited