canSetFields method
Returns true
if all fields
can be set using setField.
Implementation
bool canSetFields(List<String> fields) {
for (var f in fields) {
var field = this.field(f);
if (field == null || field.isFinal || !field.hasSetter) {
return false;
}
}
return true;
}