obscureText property

bool obscureText
final

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

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

Defaults to false.

Implementation

final bool obscureText;