obscureText property

  1. @override
bool get obscureText
override

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

@override
bool get obscureText => true;