clear method

void clear()

Clear the data. The set schema information will not be cleared.

Implementation

void clear(){
  if(_schema != null){
    _schema!.fields.forEach((field) => _values![field.name]=field.defaultValue);
  }
  _validated.forEach((name, value) {validated[name] = null;});
}