decoration property Null safety

BoxDecoration? decoration

Sets the decoration for the text field.

This property is automatically set using the backgroundColor and borderRadius properties, which both have default values. Therefore, decoration has a default value upon building the widget. It is designed to mimic the look of a UISearchTextField.


final BoxDecoration? decoration;