decoration property

InputDecoration decoration
final

The decoration to show around the text field.

By default, draws a horizontal line under the text field but can be configured to show an icon, label, hint text, and error text.

Specify null to remove the decoration entirely (including the extra padding introduced by the decoration to save space for the labels).

Implementation

final InputDecoration decoration