isObscured property

bool isObscured

Whether the value should be obscured.

This option is usually set in combination with textField to indicate that the text field contains a password (or other sensitive information). Doing so instructs screen readers to not read out the value.


bool get isObscured => _hasFlag(SemanticsFlag.isObscured);
void isObscured= (bool value)


set isObscured(bool value) {
  _setFlag(SemanticsFlag.isObscured, value);