placeholder property

Widget? placeholder
final

The placeholder widget to display in the text field when no text is entered.

Type: Widget?

Usage: Provides a hint for the expected input, such as a Text widget with instructional text. Defaults to null, in which case no placeholder is shown.

Implementation

final Widget? placeholder;