child property

Widget? child
final

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.

Implementation

final Widget? child;