obscureText property

bool obscureText
final

Whether to hide the text being edited (e.g., for passwords). Defaults to false.

When this is set to true, all the characters in the text field are obscured, and the text in the field cannot be copied with copy or cut. If readOnly is also true, then the text cannot be selected.

Implementation

final bool obscureText;