child property

Widget? child
final

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

Implementation

final Widget? child;