read method
Implementation
String? read() {
var state = _formKey.currentState;
if (state != null) {
if (state.validate()) {
if (widget.persist) {
save(ctrl.text);
}
return ctrl.text;
}
}
return null;
}
String? read() {
var state = _formKey.currentState;
if (state != null) {
if (state.validate()) {
if (widget.persist) {
save(ctrl.text);
}
return ctrl.text;
}
}
return null;
}