read method

String? read()

Implementation

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