source
code
for

if

color

!=

null

current

ColoredBox

color:

color

child:

current

);

Correspondingly, the Image and Text widgets might insert child widgets such
as RawImage and RichText during the build process. The eventual widget
hierarchy may therefore be deeper than what the code represents, as in this
case2:

This explains why, when you examine the tree through a debug tool such as the
Flutter inspector, part of the
Dart DevTools, you might see a structure that is considerably deeper than what
is in your original code.