prefix property
final
Optional widget to place on the line before the input.
This can be used, for example, to add some padding to text that would otherwise be specified using prefixText, or to add a custom widget in front of the input. The widget's baseline is lined up with the input baseline.
Only one of prefix and prefixText can be specified.
The prefix appears after the prefixIcon, if both are specified.
See also:
- suffix, the equivalent but on the trailing edge.
Implementation
final Widget? prefix;