isObscure method
Use this function to get controller's obscurity value using the unique id you supplied earlier!
{@tool snippet}
onPressed: () {
//* Get obscurity value
_formController.isObscure("id1")
}
{@end-tool}
Implementation
bool isObscure(String id) {
late bool ret;
if (_textControllers.containsKey(id) && _textControllers[id] != null) {
ret = _obscurity[id]!;
} else {
throw Exception(
"No controllers found with the provided id, Did you create a controller with this id? Did you wait for the controller to initializ?");
}
return ret;
}