obscureText property Null safety

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. Cannot be null.

Implementation

final bool obscureText;