buildHeader method
Implementation
Widget buildHeader(int i) {
return GestureDetector(
key: ValueKey(i),
onTap: () => debugPrint('header $i'),
child: Container(
color: Colors.lightBlue.shade200,
alignment: Alignment.centerLeft,
child: Text("PersistentHeader $i"),
),
);
}