child property

Widget? child
final

child of type Widget is alternative to text key. text will get priority over child

Implementation

final Widget? child;