0

if i have a listview builder which is comprised of empty Container() and ListTile() in random order, how can i identify which widget appeared at particular index ?

icantcode
  • 142
  • 1
  • 15

1 Answers1

0

You can use print(widget.runtimeType); to determine the type of a widget.

Kaushik Chandru
  • 15,510
  • 2
  • 12
  • 30