StickySection class

A sticky-header list builder.

Groups items under floating sticky headers while scrolling.

StickyHeaderList(
  sections: [
    StickySection(
      header: Text('A'),
      children: [ListTile(title: Text('Apple'))],
    ),
    StickySection(
      header: Text('B'),
      children: [ListTile(title: Text('Banana'))],
    ),
  ],
)

Constructors

StickySection({required Widget header, required List<Widget> children})
const

Properties

children → List<Widget>
final
hashCode → int
The hash code for this object.
no setterinherited
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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