child property

Widget? child

The widget below this widget in the tree.

Typically a single-line ListTile (for menus with icons) or a Text. An appropriate DefaultTextStyle is put in scope for the child. In either case, the text should be short enough that it won't wrap.


final Widget? child;